object SofitSystemService: TSofitSystemService
  OldCreateOrder = True
  SessionManager = ServerDataModule.SessionManager
  ServiceSchema = Schema
  ServiceDataStreamer = DataStreamer
  AllowExecuteSQL = True
  AllowWhereSQL = True
  AllowExecuteCommands = True
  ExportedDataTables = <>
  Height = 212
  Width = 216
  object DataStreamer: TDABin2DataStreamer
    Left = 32
    Top = 8
  end
  object Schema: TDASchema
    ConnectionManager = ServerDataModule.ConnectionManager
    DataDictionary = ServerDataModule.DataDictionary
    Datasets = <
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            Name = 'SysConnection'
            SQL = 
              'select dfid_productid, dfid_pno,dfid_serial,dfid_pid,dfid_produc' +
              'tno, dfid_buyprice,dfid_deliverdate,'#10'       dfid_unit,dfid_remar' +
              'k,dfi_fid,dfi_fno,dfi_fsimpname,dfi_mcode'#10'from'#10'    d_factoryinqu' +
              'iredetails'#10'left outer join d_factoryinquire on dfid_pid=dfi_id'#10#10 +
              'where'#10'     {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dfid_productid'
                TableField = 'dfid_productid'
              end
              item
                DatasetField = 'dfid_pno'
                TableField = 'dfid_pno'
              end
              item
                DatasetField = 'dfid_serial'
                TableField = 'dfid_serial'
              end
              item
                DatasetField = 'dfid_pid'
                TableField = 'dfid_pid'
              end
              item
                DatasetField = 'dfid_productno'
                TableField = 'dfid_productno'
              end
              item
                DatasetField = 'dfid_buyprice'
                TableField = 'dfid_buyprice'
              end
              item
                DatasetField = 'dfid_deliverdate'
                TableField = 'dfid_deliverdate'
              end
              item
                DatasetField = 'dfid_unit'
                TableField = 'dfid_unit'
              end
              item
                DatasetField = 'dfid_remark'
                TableField = 'dfid_remark'
              end
              item
                DatasetField = 'dfi_fid'
                TableField = 'dfi_fid'
              end
              item
                DatasetField = 'dfi_fno'
                TableField = 'dfi_fno'
              end
              item
                DatasetField = 'dfi_fsimpname'
                TableField = 'dfi_fsimpname'
              end
              item
                DatasetField = 'dfi_mcode'
                TableField = 'dfi_mcode'
              end>
          end>
        Name = 'd_inquireproductdetails'
        Fields = <
          item
            Name = 'dfid_productid'
            DataType = datGuid
          end
          item
            Name = 'dfid_pno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dfid_serial'
            DataType = datInteger
          end
          item
            Name = 'dfid_pid'
            DataType = datGuid
          end
          item
            Name = 'dfid_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfid_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dfid_deliverdate'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfid_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dfid_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfi_fid'
            DataType = datGuid
            ReadOnly = True
          end
          item
            Name = 'dfi_fno'
            DataType = datString
            Size = 20
            ReadOnly = True
          end
          item
            Name = 'dfi_fsimpname'
            DataType = datString
            Size = 30
            ReadOnly = True
          end
          item
            Name = 'dfi_mcode'
            DataType = datString
            Size = 10
            ReadOnly = True
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            Name = 'SysConnection'
            StatementType = stSQL
            ColumnMappings = <>
          end>
        Name = 'b_basetable'
        Fields = <>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_department'
            SQL = 
              'SELECT '#10'    bd_id, bd_name, bd_parent, bd_leader, bd_desc'#10'  FROM' +
              #10'    b_department'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bd_id'
                TableField = 'bd_id'
              end
              item
                DatasetField = 'bd_name'
                TableField = 'bd_name'
              end
              item
                DatasetField = 'bd_parent'
                TableField = 'bd_parent'
              end
              item
                DatasetField = 'bd_leader'
                TableField = 'bd_leader'
              end
              item
                DatasetField = 'bd_desc'
                TableField = 'bd_desc'
              end>
          end>
        Name = 'b_department'
        Fields = <
          item
            Name = 'bd_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bd_name'
            DataType = datWideString
            Size = 30
            Required = True
          end
          item
            Name = 'bd_parent'
            DataType = datWideString
            Size = 30
          end
          item
            Name = 'bd_leader'
            DataType = datWideString
            Size = 30
          end
          item
            Name = 'bd_desc'
            DataType = datWideString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            Name = 'SysConnection'
            SQL = 
              'select dfid_productid, dfid_pno,dfid_serial,dfid_pid,dfid_produc' +
              'tno, dfid_buyprice,dfid_nw,dfid_patterncharge,'#10'       dfid_jigch' +
              'arge,dfid_processcost,dfid_castprice,dfid_deliverdate,'#10'       df' +
              'id_unit,dfid_packingcharge,dfid_remark,dfi_fid,dfi_fno,dfi_fsimp' +
              'name,dfi_mcode'#10'from'#10'    d_factoryinquiredetails'#10'left outer join ' +
              'd_factoryinquire on dfid_pid=dfi_id'#10#10'where'#10'     {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dfid_pno'
                TableField = 'dfid_pno'
              end
              item
                DatasetField = 'dfid_buyprice'
                TableField = 'dfid_buyprice'
              end
              item
                DatasetField = 'dfid_nw'
                TableField = 'dfid_nw'
              end
              item
                DatasetField = 'dfid_patterncharge'
                TableField = 'dfid_patterncharge'
              end
              item
                DatasetField = 'dfid_jigcharge'
                TableField = 'dfid_jigcharge'
              end
              item
                DatasetField = 'dfid_processcost'
                TableField = 'dfid_processcost'
              end
              item
                DatasetField = 'dfid_castprice'
                TableField = 'dfid_castprice'
              end
              item
                DatasetField = 'dfid_unit'
                TableField = 'dfid_unit'
              end
              item
                DatasetField = 'dfid_packingcharge'
                TableField = 'dfid_packingcharge'
              end
              item
                DatasetField = 'dfid_remark'
                TableField = 'dfid_remark'
              end
              item
                DatasetField = 'dfi_fid'
                TableField = 'dfi_fid'
              end
              item
                DatasetField = 'dfi_fno'
                TableField = 'dfi_fno'
              end
              item
                DatasetField = 'dfi_fsimpname'
                TableField = 'dfi_fsimpname'
              end
              item
                DatasetField = 'dfid_productid'
                TableField = 'dfid_productid'
              end
              item
                DatasetField = 'dfid_productno'
                TableField = 'dfid_productno'
              end
              item
                DatasetField = 'dfid_serial'
                TableField = 'dfid_serial'
              end
              item
                DatasetField = 'dfid_pid'
                TableField = 'dfid_pid'
              end
              item
                DatasetField = 'dfi_mcode'
                TableField = 'dfi_mcode'
              end
              item
                DatasetField = 'dfid_deliverdate'
                TableField = 'dfid_deliverdate'
              end>
          end>
        Name = 'd_customerinquiredetails'
        Fields = <
          item
            Name = 'dfid_productid'
            DataType = datGuid
          end
          item
            Name = 'dfid_pno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dfid_serial'
            DataType = datInteger
          end
          item
            Name = 'dfid_pid'
            DataType = datGuid
          end
          item
            Name = 'dfid_productno'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dfid_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dfid_nw'
            DataType = datFloat
          end
          item
            Name = 'dfid_patterncharge'
            DataType = datFloat
          end
          item
            Name = 'dfid_jigcharge'
            DataType = datFloat
          end
          item
            Name = 'dfid_processcost'
            DataType = datFloat
          end
          item
            Name = 'dfid_castprice'
            DataType = datFloat
          end
          item
            Name = 'dfid_deliverdate'
            DataType = datInteger
          end
          item
            Name = 'dfid_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dfid_packingcharge'
            DataType = datFloat
          end
          item
            Name = 'dfid_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfi_fid'
            DataType = datGuid
            ReadOnly = True
          end
          item
            Name = 'dfi_fno'
            DataType = datString
            Size = 20
            ReadOnly = True
          end
          item
            Name = 'dfi_fsimpname'
            DataType = datString
            Size = 30
            ReadOnly = True
          end
          item
            Name = 'dfi_mcode'
            DataType = datString
            Size = 10
            ReadOnly = True
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_user'
            SQL = 
              'SELECT '#10'    bu_id, bu_name, bu_cname, bu_pwd, bu_depart, bu_pare' +
              'nt,bu_iid,bu_defaultview,bu_managepower,'#10'    bu_tel, bu_short, b' +
              'u_mobile, bu_ling, bu_mail,bu_system,bu_jobtitle,bu_dateofhire,b' +
              'u_computername,bu_ipaddress,bu_contractno'#10'  FROM'#10'    b_user'#10'  WH' +
              'ERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bu_id'
                TableField = 'bu_id'
              end
              item
                DatasetField = 'bu_name'
                TableField = 'bu_name'
              end
              item
                DatasetField = 'bu_cname'
                TableField = 'bu_cname'
              end
              item
                DatasetField = 'bu_pwd'
                TableField = 'bu_pwd'
              end
              item
                DatasetField = 'bu_depart'
                TableField = 'bu_depart'
              end
              item
                DatasetField = 'bu_parent'
                TableField = 'bu_parent'
              end
              item
                DatasetField = 'bu_tel'
                TableField = 'bu_tel'
              end
              item
                DatasetField = 'bu_short'
                TableField = 'bu_short'
              end
              item
                DatasetField = 'bu_mobile'
                TableField = 'bu_mobile'
              end
              item
                DatasetField = 'bu_ling'
                TableField = 'bu_ling'
              end
              item
                DatasetField = 'bu_mail'
                TableField = 'bu_mail'
              end
              item
                DatasetField = 'bu_system'
                TableField = 'bu_system'
              end
              item
                DatasetField = 'bu_jobtitle'
                TableField = 'bu_jobtitle'
              end
              item
                DatasetField = 'bu_dateofhire'
                TableField = 'bu_dateofhire'
              end
              item
                DatasetField = 'bu_computername'
                TableField = 'bu_computername'
              end
              item
                DatasetField = 'bu_ipaddress'
                TableField = 'bu_ipaddress'
              end
              item
                DatasetField = 'bu_contractno'
                TableField = 'bu_contractno'
              end
              item
                DatasetField = 'bu_iid'
                TableField = 'bu_iid'
              end
              item
                DatasetField = 'bu_defaultview'
                TableField = 'bu_defaultview'
              end
              item
                DatasetField = 'bu_managepower'
                TableField = 'bu_managepower'
              end>
          end>
        Name = 'b_user'
        Fields = <
          item
            Name = 'bu_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bu_name'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'bu_cname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bu_pwd'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bu_depart'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bu_parent'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bu_iid'
            DataType = datAutoInc
          end
          item
            Name = 'bu_defaultview'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bu_managepower'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bu_tel'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bu_short'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bu_mobile'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bu_ling'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bu_mail'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bu_system'
            DataType = datBoolean
            DefaultValue = '1'
          end
          item
            Name = 'bu_jobtitle'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bu_dateofhire'
            DataType = datDateTime
          end
          item
            Name = 'bu_computername'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bu_ipaddress'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bu_contractno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            TargetTable = 'b_productpicture'
            SQL = 
              'SELECT '#10'    bpp_id, bpp_pid, bpp_filename, bpp_ext,bpp_smallpict' +
              'ure'#10'  FROM'#10'    b_productpicture'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bpp_id'
                TableField = 'bpp_id'
              end
              item
                DatasetField = 'bpp_pid'
                TableField = 'bpp_pid'
              end
              item
                DatasetField = 'bpp_smallpicture'
                TableField = 'bpp_smallpicture'
              end
              item
                DatasetField = 'bpp_filename'
                TableField = 'bpp_filename'
              end
              item
                DatasetField = 'bpp_ext'
                TableField = 'bpp_ext'
              end>
          end>
        Name = 'b_productpicture'
        Fields = <
          item
            Name = 'bpp_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bpp_pid'
            DataType = datGuid
          end
          item
            Name = 'bpp_filename'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bpp_ext'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bpp_smallpicture'
            DataType = datBlob
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_productattachment'
            SQL = 
              'SELECT '#10'    bpa_pid, bpa_id, bpa_filename, bpa_ext, bpa_size, bp' +
              'a_desc, '#10'    bpa_file'#10'  FROM'#10'    b_productattachment'#10'  WHERE {Wh' +
              'ere}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bpa_pid'
                TableField = 'bpa_pid'
              end
              item
                DatasetField = 'bpa_id'
                TableField = 'bpa_id'
              end
              item
                DatasetField = 'bpa_filename'
                TableField = 'bpa_filename'
              end
              item
                DatasetField = 'bpa_ext'
                TableField = 'bpa_ext'
              end
              item
                DatasetField = 'bpa_size'
                TableField = 'bpa_size'
              end
              item
                DatasetField = 'bpa_desc'
                TableField = 'bpa_desc'
              end
              item
                DatasetField = 'bpa_file'
                TableField = 'bpa_file'
              end>
          end>
        Name = 'b_productattachment'
        Fields = <
          item
            Name = 'bpa_pid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'bpa_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bpa_filename'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpa_ext'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bpa_size'
            DataType = datInteger
          end
          item
            Name = 'bpa_desc'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bpa_file'
            DataType = datBlob
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_linkman'
            SQL = 
              'SELECT '#10'    blm_id, blm_pid, blm_cnname, blm_enname, blm_departm' +
              'ent, '#10'    blm_job, blm_tel, blm_fax, blm_mobile, blm_mail, blm_m' +
              'sn,blm_hobby,blm_fuzhe'#10'  FROM'#10'    b_linkman'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'blm_id'
                TableField = 'blm_id'
              end
              item
                DatasetField = 'blm_pid'
                TableField = 'blm_pid'
              end
              item
                DatasetField = 'blm_cnname'
                TableField = 'blm_cnname'
              end
              item
                DatasetField = 'blm_enname'
                TableField = 'blm_enname'
              end
              item
                DatasetField = 'blm_department'
                TableField = 'blm_department'
              end
              item
                DatasetField = 'blm_job'
                TableField = 'blm_job'
              end
              item
                DatasetField = 'blm_tel'
                TableField = 'blm_tel'
              end
              item
                DatasetField = 'blm_fax'
                TableField = 'blm_fax'
              end
              item
                DatasetField = 'blm_mobile'
                TableField = 'blm_mobile'
              end
              item
                DatasetField = 'blm_mail'
                TableField = 'blm_mail'
              end
              item
                DatasetField = 'blm_msn'
                TableField = 'blm_msn'
              end
              item
                DatasetField = 'blm_hobby'
                TableField = 'blm_hobby'
              end
              item
                DatasetField = 'blm_fuzhe'
                TableField = 'blm_fuzhe'
              end>
          end>
        Name = 'b_linkman'
        Fields = <
          item
            Name = 'blm_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'blm_pid'
            DataType = datGuid
          end
          item
            Name = 'blm_cnname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'blm_enname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'blm_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'blm_job'
            DataType = datString
            Size = 30
          end
          item
            Name = 'blm_tel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'blm_fax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'blm_mobile'
            DataType = datString
            Size = 30
          end
          item
            Name = 'blm_mail'
            DataType = datString
            Size = 60
          end
          item
            Name = 'blm_msn'
            DataType = datString
            Size = 60
          end
          item
            Name = 'blm_hobby'
            DataType = datString
            Size = 100
          end
          item
            Name = 'blm_fuzhe'
            DataType = datString
            Size = 100
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_piprepay'
            SQL = 
              'SELECT '#10'    dpp_pid, dpp_prepaypreamt, dpp_prepaypayment, dpp_pr' +
              'epaydate,dpp_prepaybankaccount,'#10'    dpp_prepaystaff, dpp_prepays' +
              'taffid, dpp_bid, dpp_prepaybankno, dpp_prepaybank,'#10'    dpp_prepa' +
              'yremark,dpp_accountid,dpp_amtrate'#10'  FROM'#10'    d_piprepay'#10'  WHERE ' +
              '{Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpp_pid'
                TableField = 'dpp_pid'
              end
              item
                DatasetField = 'dpp_prepaypreamt'
                TableField = 'dpp_prepaypreamt'
              end
              item
                DatasetField = 'dpp_prepaypayment'
                TableField = 'dpp_prepaypayment'
              end
              item
                DatasetField = 'dpp_prepaydate'
                TableField = 'dpp_prepaydate'
              end
              item
                DatasetField = 'dpp_prepaystaff'
                TableField = 'dpp_prepaystaff'
              end
              item
                DatasetField = 'dpp_bid'
                TableField = 'dpp_bid'
              end
              item
                DatasetField = 'dpp_prepaybankno'
                TableField = 'dpp_prepaybankno'
              end
              item
                DatasetField = 'dpp_prepaybank'
                TableField = 'dpp_prepaybank'
              end
              item
                DatasetField = 'dpp_prepayremark'
                TableField = 'dpp_prepayremark'
              end
              item
                DatasetField = 'dpp_prepaystaffid'
                TableField = 'dpp_prepaystaffid'
              end
              item
                DatasetField = 'dpp_prepaybankaccount'
                TableField = 'dpp_prepaybankaccount'
              end
              item
                DatasetField = 'dpp_accountid'
                TableField = 'dpp_accountid'
              end
              item
                DatasetField = 'dpp_amtrate'
                TableField = 'dpp_amtrate'
              end>
          end>
        Name = 'd_piprepay'
        Fields = <
          item
            Name = 'dpp_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpp_prepaypreamt'
            DataType = datFloat
          end
          item
            Name = 'dpp_prepaypayment'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpp_prepaydate'
            DataType = datDateTime
          end
          item
            Name = 'dpp_prepaybankaccount'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpp_prepaystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpp_prepaystaffid'
            DataType = datGuid
          end
          item
            Name = 'dpp_bid'
            DataType = datGuid
          end
          item
            Name = 'dpp_prepaybankno'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dpp_prepaybank'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dpp_prepayremark'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dpp_accountid'
            DataType = datGuid
          end
          item
            Name = 'dpp_amtrate'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_stockprepay'
            SQL = 
              'SELECT '#10'    dsp_pid, dsp_accountid, dsp_prepaypreamt, dsp_prepay' +
              'payment, dsp_prepaydate,'#10'    dsp_prepaystaff, dsp_prepaystaffid,' +
              'dsp_bid, dsp_prepaybankno, dsp_prepaybank,dsp_prepaybankaccount,' +
              #10'    dsp_prepayremark, dsp_amtrate'#10'  FROM'#10'    d_stockprepay'#10'  WH' +
              'ERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dsp_pid'
                TableField = 'dsp_pid'
              end
              item
                DatasetField = 'dsp_prepaypreamt'
                TableField = 'dsp_prepaypreamt'
              end
              item
                DatasetField = 'dsp_prepaypayment'
                TableField = 'dsp_prepaypayment'
              end
              item
                DatasetField = 'dsp_prepaydate'
                TableField = 'dsp_prepaydate'
              end
              item
                DatasetField = 'dsp_prepaystaff'
                TableField = 'dsp_prepaystaff'
              end
              item
                DatasetField = 'dsp_bid'
                TableField = 'dsp_bid'
              end
              item
                DatasetField = 'dsp_prepaybankno'
                TableField = 'dsp_prepaybankno'
              end
              item
                DatasetField = 'dsp_prepaybank'
                TableField = 'dsp_prepaybank'
              end
              item
                DatasetField = 'dsp_prepayremark'
                TableField = 'dsp_prepayremark'
              end
              item
                DatasetField = 'dsp_prepaybankaccount'
                TableField = 'dsp_prepaybankaccount'
              end
              item
                DatasetField = 'dsp_accountid'
                TableField = 'dsp_accountid'
              end
              item
                DatasetField = 'dsp_prepaystaffid'
                TableField = 'dsp_prepaystaffid'
              end
              item
                DatasetField = 'dsp_amtrate'
                TableField = 'dsp_amtrate'
              end>
          end>
        Name = 'd_stockprepay'
        Fields = <
          item
            Name = 'dsp_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dsp_accountid'
            DataType = datGuid
          end
          item
            Name = 'dsp_prepaypreamt'
            DataType = datFloat
          end
          item
            Name = 'dsp_prepaypayment'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dsp_prepaydate'
            DataType = datDateTime
          end
          item
            Name = 'dsp_prepaystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dsp_prepaystaffid'
            DataType = datGuid
          end
          item
            Name = 'dsp_bid'
            DataType = datGuid
          end
          item
            Name = 'dsp_prepaybankno'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dsp_prepaybank'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dsp_prepaybankaccount'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dsp_prepayremark'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dsp_amtrate'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_company'
            SQL = 
              'SELECT '#10'    bo_id, bo_no, bo_simpname, bo_cnname, bo_cnaddress, ' +
              #10'    bo_enname, bo_enaddress, bo_isdefult, bo_tel, bo_fax,'#10'    b' +
              'o_email, bo_web'#10'  FROM'#10'    b_company'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bo_id'
                TableField = 'bo_id'
              end
              item
                DatasetField = 'bo_no'
                TableField = 'bo_no'
              end
              item
                DatasetField = 'bo_simpname'
                TableField = 'bo_simpname'
              end
              item
                DatasetField = 'bo_cnname'
                TableField = 'bo_cnname'
              end
              item
                DatasetField = 'bo_cnaddress'
                TableField = 'bo_cnaddress'
              end
              item
                DatasetField = 'bo_enname'
                TableField = 'bo_enname'
              end
              item
                DatasetField = 'bo_enaddress'
                TableField = 'bo_enaddress'
              end
              item
                DatasetField = 'bo_isdefult'
                TableField = 'bo_isdefult'
              end
              item
                DatasetField = 'bo_tel'
                TableField = 'bo_tel'
              end
              item
                DatasetField = 'bo_fax'
                TableField = 'bo_fax'
              end
              item
                DatasetField = 'bo_email'
                TableField = 'bo_email'
              end
              item
                DatasetField = 'bo_web'
                TableField = 'bo_web'
              end>
          end>
        Name = 'b_companysimple'
        Fields = <
          item
            Name = 'bo_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bo_no'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'bo_simpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_cnname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_cnaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bo_enname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_enaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bo_isdefult'
            DataType = datBoolean
          end
          item
            Name = 'bo_tel'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_fax'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_email'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_web'
            DataType = datString
            Size = 60
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_bankinfo'
            SQL = 
              'SELECT '#10'    bbi_pid, bbi_id, bbi_no, bbi_name, bbi_address, bbi_' +
              'account, '#10'    bbi_accountname, bbi_currency, bbi_tel, bbi_tlx, b' +
              'bi_fax, '#10'    bbi_swiftcode'#10'  FROM'#10'    b_bankinfo'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bbi_pid'
                TableField = 'bbi_pid'
              end
              item
                DatasetField = 'bbi_id'
                TableField = 'bbi_id'
              end
              item
                DatasetField = 'bbi_no'
                TableField = 'bbi_no'
              end
              item
                DatasetField = 'bbi_name'
                TableField = 'bbi_name'
              end
              item
                DatasetField = 'bbi_address'
                TableField = 'bbi_address'
              end
              item
                DatasetField = 'bbi_account'
                TableField = 'bbi_account'
              end
              item
                DatasetField = 'bbi_accountname'
                TableField = 'bbi_accountname'
              end
              item
                DatasetField = 'bbi_currency'
                TableField = 'bbi_currency'
              end
              item
                DatasetField = 'bbi_tel'
                TableField = 'bbi_tel'
              end
              item
                DatasetField = 'bbi_tlx'
                TableField = 'bbi_tlx'
              end
              item
                DatasetField = 'bbi_fax'
                TableField = 'bbi_fax'
              end
              item
                DatasetField = 'bbi_swiftcode'
                TableField = 'bbi_swiftcode'
              end>
          end>
        Name = 'b_bankinfo'
        Fields = <
          item
            Name = 'bbi_pid'
            DataType = datGuid
          end
          item
            Name = 'bbi_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bbi_no'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'bbi_name'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bbi_address'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bbi_account'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bbi_accountname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bbi_currency'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bbi_tel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bbi_tlx'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bbi_fax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bbi_swiftcode'
            DataType = datString
            Size = 15
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_power'
            SQL = 
              'SELECT '#10'    bp_uid, bp_type, bp_name, bp_new, bp_modify, bp_dele' +
              'te, '#10'    bp_cost, bp_report, bp_check, bp_liberty, bp_history, '#10 +
              '    bp_editreport,bp_price'#10'  FROM'#10'    b_power'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bp_uid'
                TableField = 'bp_uid'
              end
              item
                DatasetField = 'bp_type'
                TableField = 'bp_type'
              end
              item
                DatasetField = 'bp_name'
                TableField = 'bp_name'
              end
              item
                DatasetField = 'bp_new'
                TableField = 'bp_new'
              end
              item
                DatasetField = 'bp_modify'
                TableField = 'bp_modify'
              end
              item
                DatasetField = 'bp_delete'
                TableField = 'bp_delete'
              end
              item
                DatasetField = 'bp_cost'
                TableField = 'bp_cost'
              end
              item
                DatasetField = 'bp_report'
                TableField = 'bp_report'
              end
              item
                DatasetField = 'bp_check'
                TableField = 'bp_check'
              end
              item
                DatasetField = 'bp_liberty'
                TableField = 'bp_liberty'
              end
              item
                DatasetField = 'bp_history'
                TableField = 'bp_history'
              end
              item
                DatasetField = 'bp_editreport'
                TableField = 'bp_editreport'
              end
              item
                DatasetField = 'bp_price'
                TableField = 'bp_price'
              end>
          end>
        Name = 'b_power'
        Fields = <
          item
            Name = 'bp_uid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bp_type'
            DataType = datString
            Size = 30
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bp_name'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bp_new'
            DataType = datBoolean
            DefaultValue = '0'
          end
          item
            Name = 'bp_modify'
            DataType = datBoolean
            DefaultValue = '0'
          end
          item
            Name = 'bp_delete'
            DataType = datBoolean
            DefaultValue = '0'
          end
          item
            Name = 'bp_cost'
            DataType = datBoolean
            DefaultValue = '0'
          end
          item
            Name = 'bp_report'
            DataType = datBoolean
            DefaultValue = '0'
          end
          item
            Name = 'bp_check'
            DataType = datBoolean
            DefaultValue = '0'
          end
          item
            Name = 'bp_liberty'
            DataType = datBoolean
            DefaultValue = '0'
          end
          item
            Name = 'bp_history'
            DataType = datBoolean
            DefaultValue = '0'
          end
          item
            Name = 'bp_editreport'
            DataType = datBoolean
            DefaultValue = '0'
          end
          item
            Name = 'bp_price'
            DataType = datBoolean
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_user_visible'
            SQL = 
              'SELECT '#10'    buv_uid, buv_uservisible, buv_data, buv_bill, buv_ma' +
              'il, bu_name, bu_cname'#10'  FROM'#10'    b_user_visible left outer join ' +
              'b_user on buv_uservisible=bu_id'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'buv_uid'
                TableField = 'buv_uid'
              end
              item
                DatasetField = 'buv_uservisible'
                TableField = 'buv_uservisible'
              end
              item
                DatasetField = 'buv_data'
                TableField = 'buv_data'
              end
              item
                DatasetField = 'buv_bill'
                TableField = 'buv_bill'
              end
              item
                DatasetField = 'buv_mail'
                TableField = 'buv_mail'
              end
              item
                DatasetField = 'bu_name'
                TableField = '<unknown>'
                SQLOrigin = 'bu_name'
              end
              item
                DatasetField = 'bu_cname'
                TableField = '<unknown>'
                SQLOrigin = 'bu_cname'
              end>
          end>
        Name = 'b_user_visible'
        Fields = <
          item
            Name = 'buv_uid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'buv_uservisible'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'buv_data'
            DataType = datBoolean
          end
          item
            Name = 'buv_bill'
            DataType = datBoolean
          end
          item
            Name = 'buv_mail'
            DataType = datBoolean
          end
          item
            Name = 'bu_name'
            DataType = datWideString
            Size = 30
            ReadOnly = True
          end
          item
            Name = 'bu_cname'
            DataType = datWideString
            Size = 30
            ReadOnly = True
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_menu'
            SQL = 
              'SELECT '#10'    bm_system, bm_name, bm_type'#10'  FROM'#10'    b_menu'#10'  WHER' +
              'E isnull(bm_type,'#39#39')<>'#39#39#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bm_system'
                TableField = 'bm_system'
              end
              item
                DatasetField = 'bm_type'
                TableField = 'bm_type'
              end
              item
                DatasetField = 'bm_name'
                TableField = 'bm_name'
              end>
          end>
        Name = 'b_menu'
        Fields = <
          item
            Name = 'bm_system'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bm_name'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bm_type'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_othercompany'
            SQL = 
              'SELECT '#10'    boc_id, boc_no, boc_simpname, boc_cnname, boc_enname' +
              ', '#10'    boc_cnaddress, boc_enaddress, boc_type, boc_city, boc_ind' +
              'ustry, '#10'    boc_principal, boc_tel, boc_fax, boc_zipcode, boc_em' +
              'ail, '#10'    boc_website, boc_remark, boc_createstaff, boc_createda' +
              'te'#10'  FROM'#10'    b_othercompany'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'boc_id'
                TableField = 'boc_id'
              end
              item
                DatasetField = 'boc_no'
                TableField = 'boc_no'
              end
              item
                DatasetField = 'boc_simpname'
                TableField = 'boc_simpname'
              end
              item
                DatasetField = 'boc_cnname'
                TableField = 'boc_cnname'
              end
              item
                DatasetField = 'boc_enname'
                TableField = 'boc_enname'
              end
              item
                DatasetField = 'boc_cnaddress'
                TableField = 'boc_cnaddress'
              end
              item
                DatasetField = 'boc_enaddress'
                TableField = 'boc_enaddress'
              end
              item
                DatasetField = 'boc_type'
                TableField = 'boc_type'
              end
              item
                DatasetField = 'boc_city'
                TableField = 'boc_city'
              end
              item
                DatasetField = 'boc_industry'
                TableField = 'boc_industry'
              end
              item
                DatasetField = 'boc_principal'
                TableField = 'boc_principal'
              end
              item
                DatasetField = 'boc_tel'
                TableField = 'boc_tel'
              end
              item
                DatasetField = 'boc_fax'
                TableField = 'boc_fax'
              end
              item
                DatasetField = 'boc_zipcode'
                TableField = 'boc_zipcode'
              end
              item
                DatasetField = 'boc_email'
                TableField = 'boc_email'
              end
              item
                DatasetField = 'boc_website'
                TableField = 'boc_website'
              end
              item
                DatasetField = 'boc_remark'
                TableField = 'boc_remark'
              end
              item
                DatasetField = 'boc_createstaff'
                TableField = 'boc_createstaff'
              end
              item
                DatasetField = 'boc_createdate'
                TableField = 'boc_createdate'
              end>
          end>
        Name = 'b_othercompany'
        Fields = <
          item
            Name = 'boc_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'boc_no'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'boc_simpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'boc_cnname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'boc_enname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'boc_cnaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'boc_enaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'boc_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'boc_city'
            DataType = datString
            Size = 30
          end
          item
            Name = 'boc_industry'
            DataType = datString
            Size = 30
          end
          item
            Name = 'boc_principal'
            DataType = datString
            Size = 30
          end
          item
            Name = 'boc_tel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'boc_fax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'boc_zipcode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'boc_email'
            DataType = datString
            Size = 60
          end
          item
            Name = 'boc_website'
            DataType = datString
            Size = 60
          end
          item
            Name = 'boc_remark'
            DataType = datString
            Size = 1000
          end
          item
            Name = 'boc_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'boc_createdate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_sysparam'
            SQL = 
              'SELECT '#10'    bsp_id, bsp_no, bsp_desc, bsp_value, bsp_num, bsp_bo' +
              'ol'#10'  FROM'#10'    b_sysparam'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bsp_id'
                TableField = 'bsp_id'
              end
              item
                DatasetField = 'bsp_no'
                TableField = 'bsp_no'
              end
              item
                DatasetField = 'bsp_desc'
                TableField = 'bsp_desc'
              end
              item
                DatasetField = 'bsp_value'
                TableField = 'bsp_value'
              end
              item
                DatasetField = 'bsp_num'
                TableField = 'bsp_num'
              end
              item
                DatasetField = 'bsp_bool'
                TableField = 'bsp_bool'
              end>
          end>
        Name = 'b_sysparam'
        Fields = <
          item
            Name = 'bsp_id'
            DataType = datAutoInc
            GeneratorName = 'b_sysparam'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bsp_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bsp_desc'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bsp_value'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_num'
            DataType = datFloat
          end
          item
            Name = 'bsp_bool'
            DataType = datBoolean
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_attachments'
            SQL = 
              'SELECT '#10'    ba_pid, ba_id, ba_filename, ba_ext, ba_size, ba_desc' +
              #10'  FROM'#10'    b_attachments'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'ba_pid'
                TableField = 'ba_pid'
              end
              item
                DatasetField = 'ba_id'
                TableField = 'ba_id'
              end
              item
                DatasetField = 'ba_filename'
                TableField = 'ba_filename'
              end
              item
                DatasetField = 'ba_ext'
                TableField = 'ba_ext'
              end
              item
                DatasetField = 'ba_size'
                TableField = 'ba_size'
              end
              item
                DatasetField = 'ba_desc'
                TableField = 'ba_desc'
              end>
          end>
        Name = 'b_attachments'
        Fields = <
          item
            Name = 'ba_pid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'ba_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'ba_filename'
            DataType = datString
            Size = 60
          end
          item
            Name = 'ba_ext'
            DataType = datString
            Size = 10
          end
          item
            Name = 'ba_size'
            DataType = datInteger
          end
          item
            Name = 'ba_desc'
            DataType = datString
            Size = 60
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_attachments'
            SQL = 
              'SELECT '#10'    ba_id,ba_file'#10'  FROM'#10'    b_attachments'#10'  WHERE {wher' +
              'e}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'ba_file'
                TableField = 'ba_file'
              end
              item
                DatasetField = 'ba_id'
                TableField = 'ba_id'
              end>
          end>
        Name = 'b_attachmentfiles'
        Fields = <
          item
            Name = 'ba_id'
            DataType = datGuid
            BlobType = dabtGraphic
          end
          item
            Name = 'ba_file'
            DataType = datBlob
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_schedule'
            SQL = 
              'SELECT '#10'    dsc_actualfinish, dsc_actualstart, dsc_caption, dsc_' +
              'eventtype, '#10'    dsc_finish, dsc_id, dsc_labelcolor, dsc_location' +
              ', dsc_message, '#10'    dsc_options, dsc_parentid, dsc_recurrenceind' +
              'ex, dsc_reminderdate, '#10'    dsc_reminderminutes, dsc_resourceid, ' +
              'dsc_start, dsc_state'#10'  FROM'#10'    d_schedule'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dsc_actualfinish'
                TableField = 'dsc_actualfinish'
              end
              item
                DatasetField = 'dsc_actualstart'
                TableField = 'dsc_actualstart'
              end
              item
                DatasetField = 'dsc_caption'
                TableField = 'dsc_caption'
              end
              item
                DatasetField = 'dsc_eventtype'
                TableField = 'dsc_eventtype'
              end
              item
                DatasetField = 'dsc_finish'
                TableField = 'dsc_finish'
              end
              item
                DatasetField = 'dsc_id'
                TableField = 'dsc_id'
              end
              item
                DatasetField = 'dsc_labelcolor'
                TableField = 'dsc_labelcolor'
              end
              item
                DatasetField = 'dsc_location'
                TableField = 'dsc_location'
              end
              item
                DatasetField = 'dsc_message'
                TableField = 'dsc_message'
              end
              item
                DatasetField = 'dsc_options'
                TableField = 'dsc_options'
              end
              item
                DatasetField = 'dsc_parentid'
                TableField = 'dsc_parentid'
              end
              item
                DatasetField = 'dsc_recurrenceindex'
                TableField = 'dsc_recurrenceindex'
              end
              item
                DatasetField = 'dsc_reminderdate'
                TableField = 'dsc_reminderdate'
              end
              item
                DatasetField = 'dsc_reminderminutes'
                TableField = 'dsc_reminderminutes'
              end
              item
                DatasetField = 'dsc_resourceid'
                TableField = 'dsc_resourceid'
              end
              item
                DatasetField = 'dsc_start'
                TableField = 'dsc_start'
              end
              item
                DatasetField = 'dsc_state'
                TableField = 'dsc_state'
              end>
          end>
        Name = 'd_schedule'
        Fields = <
          item
            Name = 'dsc_actualfinish'
            DataType = datDateTime
          end
          item
            Name = 'dsc_actualstart'
            DataType = datDateTime
          end
          item
            Name = 'dsc_caption'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dsc_eventtype'
            DataType = datInteger
          end
          item
            Name = 'dsc_finish'
            DataType = datDateTime
          end
          item
            Name = 'dsc_id'
            DataType = datAutoInc
            GeneratorName = 'd_schedule'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dsc_labelcolor'
            DataType = datInteger
          end
          item
            Name = 'dsc_location'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dsc_message'
            DataType = datString
            Size = 6000
          end
          item
            Name = 'dsc_options'
            DataType = datInteger
          end
          item
            Name = 'dsc_parentid'
            DataType = datInteger
          end
          item
            Name = 'dsc_recurrenceindex'
            DataType = datInteger
          end
          item
            Name = 'dsc_reminderdate'
            DataType = datDateTime
          end
          item
            Name = 'dsc_reminderminutes'
            DataType = datInteger
          end
          item
            Name = 'dsc_resourceid'
            DataType = datGuid
          end
          item
            Name = 'dsc_start'
            DataType = datDateTime
          end
          item
            Name = 'dsc_state'
            DataType = datInteger
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_invoicecredit'
            SQL = 
              'SELECT '#10'    dic_id, dic_no, dic_date, dic_validdate, dic_shipper' +
              ', '#10'    dic_noticeparty, dic_consignee, dic_to, dic_openbank, '#10'  ' +
              '  dic_adedate, dic_amt, dic_mcode, dic_remark'#10'  FROM'#10'    d_invoi' +
              'cecredit'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dic_id'
                TableField = 'dic_id'
              end
              item
                DatasetField = 'dic_no'
                TableField = 'dic_no'
              end
              item
                DatasetField = 'dic_date'
                TableField = 'dic_date'
              end
              item
                DatasetField = 'dic_validdate'
                TableField = 'dic_validdate'
              end
              item
                DatasetField = 'dic_shipper'
                TableField = 'dic_shipper'
              end
              item
                DatasetField = 'dic_noticeparty'
                TableField = 'dic_noticeparty'
              end
              item
                DatasetField = 'dic_consignee'
                TableField = 'dic_consignee'
              end
              item
                DatasetField = 'dic_to'
                TableField = 'dic_to'
              end
              item
                DatasetField = 'dic_openbank'
                TableField = 'dic_openbank'
              end
              item
                DatasetField = 'dic_adedate'
                TableField = 'dic_adedate'
              end
              item
                DatasetField = 'dic_amt'
                TableField = 'dic_amt'
              end
              item
                DatasetField = 'dic_mcode'
                TableField = 'dic_mcode'
              end
              item
                DatasetField = 'dic_remark'
                TableField = 'dic_remark'
              end>
          end>
        Name = 'd_invoicecredit'
        Fields = <
          item
            Name = 'dic_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dic_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dic_date'
            DataType = datDateTime
          end
          item
            Name = 'dic_validdate'
            DataType = datDateTime
          end
          item
            Name = 'dic_shipper'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dic_noticeparty'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dic_consignee'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dic_to'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dic_openbank'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dic_adedate'
            DataType = datDateTime
          end
          item
            Name = 'dic_amt'
            DataType = datFloat
            DefaultValue = '0'
          end
          item
            Name = 'dic_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dic_remark'
            DataType = datString
            Size = 255
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_reports'
            SQL = 
              'SELECT '#10'    brp_id, brp_name, brp_modal, brp_master, brp_mfield,' +
              ' '#10'    brp_mparam, brp_bdetail1, brp_detail1, brp_dfield1, '#10'    b' +
              'rp_dparam11, brp_bdetail2, brp_detail2, brp_dfield2, '#10'    brp_dp' +
              'aram21, brp_bsub1, brp_sub1, brp_sfield1, brp_sparam11, '#10'    brp' +
              '_sparam12, brp_bsub2, brp_sub2, brp_sfield2, brp_sparam21, '#10'    ' +
              'brp_sparam22, brp_mname, brp_dname1, brp_dname2,'#10'    brp_sname1,' +
              ' brp_sname2,brp_version'#10'  FROM'#10'    b_reports'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'brp_id'
                TableField = 'brp_id'
              end
              item
                DatasetField = 'brp_name'
                TableField = 'brp_name'
              end
              item
                DatasetField = 'brp_modal'
                TableField = 'brp_modal'
              end
              item
                DatasetField = 'brp_master'
                TableField = 'brp_master'
              end
              item
                DatasetField = 'brp_mfield'
                TableField = 'brp_mfield'
              end
              item
                DatasetField = 'brp_mparam'
                TableField = 'brp_mparam'
              end
              item
                DatasetField = 'brp_bdetail1'
                TableField = 'brp_bdetail1'
              end
              item
                DatasetField = 'brp_detail1'
                TableField = 'brp_detail1'
              end
              item
                DatasetField = 'brp_dfield1'
                TableField = 'brp_dfield1'
              end
              item
                DatasetField = 'brp_dparam11'
                TableField = 'brp_dparam11'
              end
              item
                DatasetField = 'brp_bdetail2'
                TableField = 'brp_bdetail2'
              end
              item
                DatasetField = 'brp_detail2'
                TableField = 'brp_detail2'
              end
              item
                DatasetField = 'brp_dfield2'
                TableField = 'brp_dfield2'
              end
              item
                DatasetField = 'brp_dparam21'
                TableField = 'brp_dparam21'
              end
              item
                DatasetField = 'brp_bsub1'
                TableField = 'brp_bsub1'
              end
              item
                DatasetField = 'brp_sub1'
                TableField = 'brp_sub1'
              end
              item
                DatasetField = 'brp_sfield1'
                TableField = 'brp_sfield1'
              end
              item
                DatasetField = 'brp_sparam11'
                TableField = 'brp_sparam11'
              end
              item
                DatasetField = 'brp_sparam12'
                TableField = 'brp_sparam12'
              end
              item
                DatasetField = 'brp_bsub2'
                TableField = 'brp_bsub2'
              end
              item
                DatasetField = 'brp_sub2'
                TableField = 'brp_sub2'
              end
              item
                DatasetField = 'brp_sfield2'
                TableField = 'brp_sfield2'
              end
              item
                DatasetField = 'brp_sparam21'
                TableField = 'brp_sparam21'
              end
              item
                DatasetField = 'brp_sparam22'
                TableField = 'brp_sparam22'
              end
              item
                DatasetField = 'brp_mname'
                TableField = 'brp_mname'
              end
              item
                DatasetField = 'brp_dname1'
                TableField = 'brp_dname1'
              end
              item
                DatasetField = 'brp_dname2'
                TableField = 'brp_dname2'
              end
              item
                DatasetField = 'brp_sname1'
                TableField = 'brp_sname1'
              end
              item
                DatasetField = 'brp_sname2'
                TableField = 'brp_sname2'
              end
              item
                DatasetField = 'brp_version'
                TableField = 'brp_version'
              end>
          end>
        Name = 'b_reports'
        Fields = <
          item
            Name = 'brp_id'
            DataType = datAutoInc
            GeneratorName = 'b_reports'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'brp_name'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'brp_modal'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_master'
            DataType = datMemo
          end
          item
            Name = 'brp_mfield'
            DataType = datMemo
          end
          item
            Name = 'brp_mparam'
            DataType = datBoolean
          end
          item
            Name = 'brp_bdetail1'
            DataType = datBoolean
          end
          item
            Name = 'brp_detail1'
            DataType = datMemo
          end
          item
            Name = 'brp_dfield1'
            DataType = datMemo
          end
          item
            Name = 'brp_dparam11'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_bdetail2'
            DataType = datBoolean
          end
          item
            Name = 'brp_detail2'
            DataType = datMemo
          end
          item
            Name = 'brp_dfield2'
            DataType = datMemo
          end
          item
            Name = 'brp_dparam21'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_bsub1'
            DataType = datBoolean
          end
          item
            Name = 'brp_sub1'
            DataType = datMemo
          end
          item
            Name = 'brp_sfield1'
            DataType = datMemo
          end
          item
            Name = 'brp_sparam11'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_sparam12'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_bsub2'
            DataType = datBoolean
          end
          item
            Name = 'brp_sub2'
            DataType = datMemo
          end
          item
            Name = 'brp_sfield2'
            DataType = datMemo
          end
          item
            Name = 'brp_sparam21'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_sparam22'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_mname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_dname1'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_dname2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_sname1'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_sname2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'brp_version'
            DataType = datInteger
            DefaultValue = '0'
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_extrafee'
            SQL = 
              'SELECT '#10'    def_pid, def_serial, def_name, def_type, def_mcode, ' +
              #10'    def_rate, def_amt, def_desc'#10'  FROM'#10'    d_extrafee'#10'  WHERE {' +
              'Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'def_pid'
                TableField = 'def_pid'
              end
              item
                DatasetField = 'def_serial'
                TableField = 'def_serial'
              end
              item
                DatasetField = 'def_name'
                TableField = 'def_name'
              end
              item
                DatasetField = 'def_type'
                TableField = 'def_type'
              end
              item
                DatasetField = 'def_mcode'
                TableField = 'def_mcode'
              end
              item
                DatasetField = 'def_rate'
                TableField = 'def_rate'
              end
              item
                DatasetField = 'def_amt'
                TableField = 'def_amt'
              end
              item
                DatasetField = 'def_desc'
                TableField = 'def_desc'
              end>
          end>
        Name = 'd_extrafee'
        Fields = <
          item
            Name = 'def_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'def_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'def_name'
            DataType = datString
            Size = 60
          end
          item
            Name = 'def_type'
            DataType = datString
            Size = 10
          end
          item
            Name = 'def_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'def_rate'
            DataType = datFloat
          end
          item
            Name = 'def_amt'
            DataType = datFloat
            DefaultValue = '0'
          end
          item
            Name = 'def_desc'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_inextrafee'
            SQL = 
              'SELECT '#10'    dief_pid, dief_serial, dief_name, dief_type, dief_mc' +
              'ode, '#10'    dief_rate, dief_amt, dief_desc'#10'  FROM'#10'    d_inextrafee' +
              #10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dief_pid'
                TableField = 'dief_pid'
              end
              item
                DatasetField = 'dief_serial'
                TableField = 'dief_serial'
              end
              item
                DatasetField = 'dief_name'
                TableField = 'dief_name'
              end
              item
                DatasetField = 'dief_type'
                TableField = 'dief_type'
              end
              item
                DatasetField = 'dief_mcode'
                TableField = 'dief_mcode'
              end
              item
                DatasetField = 'dief_rate'
                TableField = 'dief_rate'
              end
              item
                DatasetField = 'dief_amt'
                TableField = 'dief_amt'
              end
              item
                DatasetField = 'dief_desc'
                TableField = 'dief_desc'
              end>
          end>
        Name = 'd_inextrafee'
        Fields = <
          item
            Name = 'dief_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dief_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dief_name'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dief_type'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dief_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dief_rate'
            DataType = datFloat
          end
          item
            Name = 'dief_amt'
            DataType = datFloat
          end
          item
            Name = 'dief_desc'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_bulletins'
            SQL = 
              'SELECT '#10'    db_id, db_from, db_fromid, db_title, db_content, db_' +
              'startdate, '#10'    db_enddate'#10'  FROM'#10'    d_bulletins'#10'  WHERE {Where' +
              '}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'db_id'
                TableField = 'db_id'
              end
              item
                DatasetField = 'db_from'
                TableField = 'db_from'
              end
              item
                DatasetField = 'db_fromid'
                TableField = 'db_fromid'
              end
              item
                DatasetField = 'db_title'
                TableField = 'db_title'
              end
              item
                DatasetField = 'db_content'
                TableField = 'db_content'
              end
              item
                DatasetField = 'db_startdate'
                TableField = 'db_startdate'
              end
              item
                DatasetField = 'db_enddate'
                TableField = 'db_enddate'
              end>
          end>
        Name = 'd_bulletins'
        Fields = <
          item
            Name = 'db_id'
            DataType = datAutoInc
            GeneratorName = 'd_bulletins'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'db_from'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'db_fromid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'db_title'
            DataType = datString
            Size = 120
          end
          item
            Name = 'db_content'
            DataType = datString
            Size = 2000
          end
          item
            Name = 'db_startdate'
            DataType = datDateTime
          end
          item
            Name = 'db_enddate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_messages'
            SQL = 
              'SELECT '#10'    dm_id, dm_from, dm_fromid, dm_to, dm_toid, dm_conten' +
              't, '#10'    dm_type, dm_date, dm_time, dm_billtype, dm_billno,dm_isr' +
              'ead'#10'  FROM'#10'    d_messages'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dm_id'
                TableField = 'dm_id'
              end
              item
                DatasetField = 'dm_from'
                TableField = 'dm_from'
              end
              item
                DatasetField = 'dm_fromid'
                TableField = 'dm_fromid'
              end
              item
                DatasetField = 'dm_to'
                TableField = 'dm_to'
              end
              item
                DatasetField = 'dm_toid'
                TableField = 'dm_toid'
              end
              item
                DatasetField = 'dm_content'
                TableField = 'dm_content'
              end
              item
                DatasetField = 'dm_type'
                TableField = 'dm_type'
              end
              item
                DatasetField = 'dm_date'
                TableField = 'dm_date'
              end
              item
                DatasetField = 'dm_time'
                TableField = 'dm_time'
              end
              item
                DatasetField = 'dm_billtype'
                TableField = 'dm_billtype'
              end
              item
                DatasetField = 'dm_billno'
                TableField = 'dm_billno'
              end
              item
                DatasetField = 'dm_isread'
                TableField = 'dm_isread'
              end>
          end>
        Name = 'd_messages'
        Fields = <
          item
            Name = 'dm_id'
            DataType = datAutoInc
            GeneratorName = 'd_messages'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dm_from'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'dm_fromid'
            DataType = datGuid
          end
          item
            Name = 'dm_to'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dm_toid'
            DataType = datGuid
          end
          item
            Name = 'dm_content'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dm_type'
            DataType = datInteger
          end
          item
            Name = 'dm_date'
            DataType = datDateTime
          end
          item
            Name = 'dm_time'
            DataType = datDateTime
          end
          item
            Name = 'dm_billtype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dm_billno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dm_isread'
            DataType = datBoolean
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_invoiceitem1'
            SQL = 
              'SELECT '#10'    dii1_pid, dii1_serial, dii1_piid, dii1_pino, dii1_pi' +
              'serial, '#10'    dii1_mark, dii1_productid, dii1_productno, dii1_pro' +
              'ductenname, '#10'    dii1_materialen, dii1_fid, dii1_fsimpname, dii1' +
              '_packingunit, '#10'    dii1_packingqty, dii1_qty, dii1_unit, dii1_pr' +
              'ice, dii1_amt, '#10'    dii1_remark, dii1_seq, dii1_productno2, dii1' +
              '_cpino'#10'  FROM'#10'    d_invoiceitem1'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dii1_pid'
                TableField = 'dii1_pid'
              end
              item
                DatasetField = 'dii1_serial'
                TableField = 'dii1_serial'
              end
              item
                DatasetField = 'dii1_piid'
                TableField = 'dii1_piid'
              end
              item
                DatasetField = 'dii1_pino'
                TableField = 'dii1_pino'
              end
              item
                DatasetField = 'dii1_piserial'
                TableField = 'dii1_piserial'
              end
              item
                DatasetField = 'dii1_mark'
                TableField = 'dii1_mark'
              end
              item
                DatasetField = 'dii1_productid'
                TableField = 'dii1_productid'
              end
              item
                DatasetField = 'dii1_productno'
                TableField = 'dii1_productno'
              end
              item
                DatasetField = 'dii1_productenname'
                TableField = 'dii1_productenname'
              end
              item
                DatasetField = 'dii1_materialen'
                TableField = 'dii1_materialen'
              end
              item
                DatasetField = 'dii1_fid'
                TableField = 'dii1_fid'
              end
              item
                DatasetField = 'dii1_fsimpname'
                TableField = 'dii1_fsimpname'
              end
              item
                DatasetField = 'dii1_packingunit'
                TableField = 'dii1_packingunit'
              end
              item
                DatasetField = 'dii1_packingqty'
                TableField = 'dii1_packingqty'
              end
              item
                DatasetField = 'dii1_qty'
                TableField = 'dii1_qty'
              end
              item
                DatasetField = 'dii1_unit'
                TableField = 'dii1_unit'
              end
              item
                DatasetField = 'dii1_price'
                TableField = 'dii1_price'
              end
              item
                DatasetField = 'dii1_amt'
                TableField = 'dii1_amt'
              end
              item
                DatasetField = 'dii1_remark'
                TableField = 'dii1_remark'
              end
              item
                DatasetField = 'dii1_seq'
                TableField = 'dii1_seq'
              end
              item
                DatasetField = 'dii1_productno2'
                TableField = 'dii1_productno2'
              end
              item
                DatasetField = 'dii1_cpino'
                TableField = 'dii1_cpino'
              end>
          end>
        Name = 'd_custominvoiceitem1'
        Fields = <
          item
            Name = 'dii1_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dii1_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dii1_piid'
            DataType = datGuid
          end
          item
            Name = 'dii1_pino'
            DataType = datString
            Size = 20
            Required = True
          end
          item
            Name = 'dii1_piserial'
            DataType = datInteger
            Required = True
          end
          item
            Name = 'dii1_mark'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dii1_productid'
            DataType = datGuid
          end
          item
            Name = 'dii1_productno'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dii1_productenname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dii1_materialen'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dii1_fid'
            DataType = datGuid
          end
          item
            Name = 'dii1_fsimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dii1_packingunit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dii1_packingqty'
            DataType = datFloat
          end
          item
            Name = 'dii1_qty'
            DataType = datFloat
          end
          item
            Name = 'dii1_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dii1_price'
            DataType = datFloat
          end
          item
            Name = 'dii1_amt'
            DataType = datFloat
          end
          item
            Name = 'dii1_remark'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dii1_seq'
            DataType = datInteger
          end
          item
            Name = 'dii1_productno2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dii1_cpino'
            DataType = datString
            Size = 30
          end>
        ReadOnly = True
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_system_archive'
            SQL = 
              'SELECT '#10'    bsa_id, bsa_name, bsa_desc, bsa_createdate'#10'  FROM'#10'  ' +
              '  b_system_archive'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bsa_id'
                TableField = 'bsa_id'
              end
              item
                DatasetField = 'bsa_name'
                TableField = 'bsa_name'
              end
              item
                DatasetField = 'bsa_desc'
                TableField = 'bsa_desc'
              end
              item
                DatasetField = 'bsa_createdate'
                TableField = 'bsa_createdate'
              end>
          end>
        Name = 'b_system_archive'
        Fields = <
          item
            Name = 'bsa_id'
            DataType = datAutoInc
            GeneratorName = 'b_system_archive'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bsa_name'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'bsa_desc'
            DataType = datString
            Size = 500
          end
          item
            Name = 'bsa_createdate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_employee'
            SQL = 
              'SELECT '#10'    be_id, be_name, be_department, be_job, be_dateofhire' +
              ', '#10'    be_sex, be_dateofbirth, be_nation, be_education, be_resid' +
              'ence, '#10'    be_skill, be_idcardno, be_residenceaddress, be_reside' +
              'ncezipcode, '#10'    be_familyaddress, be_familyzipcode, be_tel, be_' +
              'mobile, '#10'    be_softwareskill, be_languageskill, be_favour, be_b' +
              'irthplace, '#10'    be_politicalstatus, be_medicalhistory, be_remark' +
              ', be_createstaff, '#10'    be_createdate,be_photo,be_marrystatus,be_' +
              'jobnumber,be_contractno,be_goal,be_goaldesc,be_dateofleave,'#10'    ' +
              'be_contractdate,be_email,be_jobdesc'#10'  FROM'#10'    b_employee'#10'  WHER' +
              'E {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'be_id'
                TableField = 'be_id'
              end
              item
                DatasetField = 'be_name'
                TableField = 'be_name'
              end
              item
                DatasetField = 'be_department'
                TableField = 'be_department'
              end
              item
                DatasetField = 'be_job'
                TableField = 'be_job'
              end
              item
                DatasetField = 'be_dateofhire'
                TableField = 'be_dateofhire'
              end
              item
                DatasetField = 'be_sex'
                TableField = 'be_sex'
              end
              item
                DatasetField = 'be_dateofbirth'
                TableField = 'be_dateofbirth'
              end
              item
                DatasetField = 'be_nation'
                TableField = 'be_nation'
              end
              item
                DatasetField = 'be_education'
                TableField = 'be_education'
              end
              item
                DatasetField = 'be_residence'
                TableField = 'be_residence'
              end
              item
                DatasetField = 'be_skill'
                TableField = 'be_skill'
              end
              item
                DatasetField = 'be_idcardno'
                TableField = 'be_idcardno'
              end
              item
                DatasetField = 'be_residenceaddress'
                TableField = 'be_residenceaddress'
              end
              item
                DatasetField = 'be_residencezipcode'
                TableField = 'be_residencezipcode'
              end
              item
                DatasetField = 'be_familyaddress'
                TableField = 'be_familyaddress'
              end
              item
                DatasetField = 'be_familyzipcode'
                TableField = 'be_familyzipcode'
              end
              item
                DatasetField = 'be_tel'
                TableField = 'be_tel'
              end
              item
                DatasetField = 'be_mobile'
                TableField = 'be_mobile'
              end
              item
                DatasetField = 'be_softwareskill'
                TableField = 'be_softwareskill'
              end
              item
                DatasetField = 'be_languageskill'
                TableField = 'be_languageskill'
              end
              item
                DatasetField = 'be_favour'
                TableField = 'be_favour'
              end
              item
                DatasetField = 'be_birthplace'
                TableField = 'be_birthplace'
              end
              item
                DatasetField = 'be_politicalstatus'
                TableField = 'be_politicalstatus'
              end
              item
                DatasetField = 'be_medicalhistory'
                TableField = 'be_medicalhistory'
              end
              item
                DatasetField = 'be_remark'
                TableField = 'be_remark'
              end
              item
                DatasetField = 'be_createstaff'
                TableField = 'be_createstaff'
              end
              item
                DatasetField = 'be_createdate'
                TableField = 'be_createdate'
              end
              item
                DatasetField = 'be_photo'
                TableField = 'be_photo'
              end
              item
                DatasetField = 'be_marrystatus'
                TableField = 'be_marrystatus'
              end
              item
                DatasetField = 'be_jobnumber'
                TableField = 'be_jobnumber'
              end
              item
                DatasetField = 'be_contractno'
                TableField = 'be_contractno'
              end
              item
                DatasetField = 'be_goal'
                TableField = 'be_goal'
              end
              item
                DatasetField = 'be_goaldesc'
                TableField = 'be_goaldesc'
              end
              item
                DatasetField = 'be_dateofleave'
                TableField = 'be_dateofleave'
              end
              item
                DatasetField = 'be_email'
                TableField = 'be_email'
              end
              item
                DatasetField = 'be_jobdesc'
                TableField = 'be_jobdesc'
              end
              item
                DatasetField = 'be_contractdate'
                TableField = 'be_contractdate'
              end>
          end>
        Name = 'b_employee'
        Fields = <
          item
            Name = 'be_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'be_name'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'be_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_job'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_dateofhire'
            DataType = datDateTime
          end
          item
            Name = 'be_sex'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_dateofbirth'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_nation'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_education'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_residence'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_skill'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_idcardno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_residenceaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'be_residencezipcode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_familyaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'be_familyzipcode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_tel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_mobile'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_softwareskill'
            DataType = datString
            Size = 120
          end
          item
            Name = 'be_languageskill'
            DataType = datString
            Size = 120
          end
          item
            Name = 'be_favour'
            DataType = datString
            Size = 120
          end
          item
            Name = 'be_birthplace'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_politicalstatus'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_medicalhistory'
            DataType = datString
            Size = 120
          end
          item
            Name = 'be_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'be_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_createdate'
            DataType = datDateTime
          end
          item
            Name = 'be_photo'
            DataType = datBlob
          end
          item
            Name = 'be_marrystatus'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_jobnumber'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_contractno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'be_goal'
            DataType = datString
            Size = 120
          end
          item
            Name = 'be_goaldesc'
            DataType = datString
            Size = 1000
          end
          item
            Name = 'be_dateofleave'
            DataType = datDateTime
          end
          item
            Name = 'be_contractdate'
            DataType = datString
            Size = 60
          end
          item
            Name = 'be_email'
            DataType = datString
            Size = 60
          end
          item
            Name = 'be_jobdesc'
            DataType = datMemo
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_employeeitem2'
            SQL = 
              'SELECT '#10'    bei2_pid, bei2_serial, bei2_datefrom, bei2_dateto, '#10 +
              '    bei2_school, bei2_specialty, bei2_certificate, bei2_remark'#10' ' +
              ' FROM'#10'    b_employeeitem2'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bei2_pid'
                TableField = 'bei2_pid'
              end
              item
                DatasetField = 'bei2_serial'
                TableField = 'bei2_serial'
              end
              item
                DatasetField = 'bei2_datefrom'
                TableField = 'bei2_datefrom'
              end
              item
                DatasetField = 'bei2_dateto'
                TableField = 'bei2_dateto'
              end
              item
                DatasetField = 'bei2_school'
                TableField = 'bei2_school'
              end
              item
                DatasetField = 'bei2_specialty'
                TableField = 'bei2_specialty'
              end
              item
                DatasetField = 'bei2_certificate'
                TableField = 'bei2_certificate'
              end
              item
                DatasetField = 'bei2_remark'
                TableField = 'bei2_remark'
              end>
          end>
        Name = 'b_employeeitem2'
        Fields = <
          item
            Name = 'bei2_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bei2_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bei2_datefrom'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei2_dateto'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei2_school'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bei2_specialty'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei2_certificate'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei2_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_employeeitem3'
            SQL = 
              'SELECT '#10'    bei3_pid, bei3_serial, bei3_datefrom, bei3_dateto, '#10 +
              '    bei3_company, bei3_job, bei3_reason, bei3_remark'#10'  FROM'#10'    ' +
              'b_employeeitem3'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bei3_pid'
                TableField = 'bei3_pid'
              end
              item
                DatasetField = 'bei3_serial'
                TableField = 'bei3_serial'
              end
              item
                DatasetField = 'bei3_datefrom'
                TableField = 'bei3_datefrom'
              end
              item
                DatasetField = 'bei3_dateto'
                TableField = 'bei3_dateto'
              end
              item
                DatasetField = 'bei3_company'
                TableField = 'bei3_company'
              end
              item
                DatasetField = 'bei3_job'
                TableField = 'bei3_job'
              end
              item
                DatasetField = 'bei3_reason'
                TableField = 'bei3_reason'
              end
              item
                DatasetField = 'bei3_remark'
                TableField = 'bei3_remark'
              end>
          end>
        Name = 'b_employeeitem3'
        Fields = <
          item
            Name = 'bei3_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bei3_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bei3_datefrom'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei3_dateto'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei3_company'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bei3_job'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei3_reason'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bei3_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_employeeitem1'
            SQL = 
              'SELECT '#10'    bei1_pid, bei1_serial, bei1_relation, bei1_name, bei' +
              '1_age, '#10'    bei1_company, bei1_job, bei1_tel, bei1_remark'#10'  FROM' +
              #10'    b_employeeitem1'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bei1_pid'
                TableField = 'bei1_pid'
              end
              item
                DatasetField = 'bei1_serial'
                TableField = 'bei1_serial'
              end
              item
                DatasetField = 'bei1_relation'
                TableField = 'bei1_relation'
              end
              item
                DatasetField = 'bei1_name'
                TableField = 'bei1_name'
              end
              item
                DatasetField = 'bei1_age'
                TableField = 'bei1_age'
              end
              item
                DatasetField = 'bei1_company'
                TableField = 'bei1_company'
              end
              item
                DatasetField = 'bei1_job'
                TableField = 'bei1_job'
              end
              item
                DatasetField = 'bei1_tel'
                TableField = 'bei1_tel'
              end
              item
                DatasetField = 'bei1_remark'
                TableField = 'bei1_remark'
              end>
          end>
        Name = 'b_employeeitem1'
        Fields = <
          item
            Name = 'bei1_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bei1_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bei1_relation'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei1_name'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei1_age'
            DataType = datInteger
          end
          item
            Name = 'bei1_company'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bei1_job'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei1_tel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bei1_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_customerinquire'
            SQL = 
              'SELECT '#10'    dci_id, dci_no, dci_cid, dci_csimpname, dci_oid, dci' +
              '_oiid, dci_ccontact,dci_ctel,dci_cfax,dci_cemail,'#10'    dci_osimpn' +
              'ame, dci_title, dci_desc, dci_staffid, dci_staffiid, '#10'    dci_st' +
              'aff, dci_department, dci_date, dci_reason, dci_createstaff, '#10'   ' +
              ' dci_createdate, dci_modifystaff, dci_modifydate, dci_state,dci_' +
              'batchno,'#10'    dci_checkstaff, dci_checkdate, dci_cno,dci_checkreq' +
              'ueststaff,dci_checkrequeststaffid,dci_remark,dci_hasattachs'#10'  FR' +
              'OM'#10'    d_customerinquire'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dci_id'
                TableField = 'dci_id'
              end
              item
                DatasetField = 'dci_no'
                TableField = 'dci_no'
              end
              item
                DatasetField = 'dci_cid'
                TableField = 'dci_cid'
              end
              item
                DatasetField = 'dci_csimpname'
                TableField = 'dci_csimpname'
              end
              item
                DatasetField = 'dci_oid'
                TableField = 'dci_oid'
              end
              item
                DatasetField = 'dci_oiid'
                TableField = 'dci_oiid'
              end
              item
                DatasetField = 'dci_osimpname'
                TableField = 'dci_osimpname'
              end
              item
                DatasetField = 'dci_title'
                TableField = 'dci_title'
              end
              item
                DatasetField = 'dci_desc'
                TableField = 'dci_desc'
              end
              item
                DatasetField = 'dci_staffid'
                TableField = 'dci_staffid'
              end
              item
                DatasetField = 'dci_staffiid'
                TableField = 'dci_staffiid'
              end
              item
                DatasetField = 'dci_staff'
                TableField = 'dci_staff'
              end
              item
                DatasetField = 'dci_department'
                TableField = 'dci_department'
              end
              item
                DatasetField = 'dci_date'
                TableField = 'dci_date'
              end
              item
                DatasetField = 'dci_reason'
                TableField = 'dci_reason'
              end
              item
                DatasetField = 'dci_createstaff'
                TableField = 'dci_createstaff'
              end
              item
                DatasetField = 'dci_createdate'
                TableField = 'dci_createdate'
              end
              item
                DatasetField = 'dci_modifystaff'
                TableField = 'dci_modifystaff'
              end
              item
                DatasetField = 'dci_modifydate'
                TableField = 'dci_modifydate'
              end
              item
                DatasetField = 'dci_state'
                TableField = 'dci_state'
              end
              item
                DatasetField = 'dci_checkstaff'
                TableField = 'dci_checkstaff'
              end
              item
                DatasetField = 'dci_checkdate'
                TableField = 'dci_checkdate'
              end
              item
                DatasetField = 'dci_cno'
                TableField = 'dci_cno'
              end
              item
                DatasetField = 'dci_checkrequeststaff'
                TableField = 'dci_checkrequeststaff'
              end
              item
                DatasetField = 'dci_checkrequeststaffid'
                TableField = 'dci_checkrequeststaffid'
              end
              item
                DatasetField = 'dci_remark'
                TableField = 'dci_remark'
              end
              item
                DatasetField = 'dci_hasattachs'
                TableField = 'dci_hasattachs'
              end
              item
                DatasetField = 'dci_batchno'
                TableField = 'dci_batchno'
              end
              item
                DatasetField = 'dci_ccontact'
                TableField = 'dci_ccontact'
              end
              item
                DatasetField = 'dci_ctel'
                TableField = 'dci_ctel'
              end
              item
                DatasetField = 'dci_cfax'
                TableField = 'dci_cfax'
              end
              item
                DatasetField = 'dci_cemail'
                TableField = 'dci_cemail'
              end>
          end>
        Name = 'd_customerinquire'
        Fields = <
          item
            Name = 'dci_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dci_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_cid'
            DataType = datGuid
          end
          item
            Name = 'dci_csimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_oid'
            DataType = datGuid
          end
          item
            Name = 'dci_oiid'
            DataType = datInteger
          end
          item
            Name = 'dci_ccontact'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_ctel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_cfax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_cemail'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dci_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_title'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dci_desc'
            DataType = datString
            Size = 1000
          end
          item
            Name = 'dci_staffid'
            DataType = datGuid
          end
          item
            Name = 'dci_staffiid'
            DataType = datInteger
          end
          item
            Name = 'dci_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_date'
            DataType = datDateTime
          end
          item
            Name = 'dci_reason'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dci_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dci_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dci_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_batchno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dci_cno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dci_checkrequeststaffid'
            DataType = datGuid
          end
          item
            Name = 'dci_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dci_hasattachs'
            DataType = datInteger
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_document'
            SQL = 
              'SELECT '#10'    bd_id, bd_type, bd_level, bd_parentid, bd_filename, ' +
              #10'    bd_ext, bd_size, bd_desc, bd_createstaff, bd_createstaffiid' +
              ', '#10'    bd_createdate'#10'  FROM'#10'    b_document'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bd_id'
                TableField = 'bd_id'
              end
              item
                DatasetField = 'bd_type'
                TableField = 'bd_type'
              end
              item
                DatasetField = 'bd_level'
                TableField = 'bd_level'
              end
              item
                DatasetField = 'bd_parentid'
                TableField = 'bd_parentid'
              end
              item
                DatasetField = 'bd_filename'
                TableField = 'bd_filename'
              end
              item
                DatasetField = 'bd_ext'
                TableField = 'bd_ext'
              end
              item
                DatasetField = 'bd_size'
                TableField = 'bd_size'
              end
              item
                DatasetField = 'bd_desc'
                TableField = 'bd_desc'
              end
              item
                DatasetField = 'bd_createstaff'
                TableField = 'bd_createstaff'
              end
              item
                DatasetField = 'bd_createstaffiid'
                TableField = 'bd_createstaffiid'
              end
              item
                DatasetField = 'bd_createdate'
                TableField = 'bd_createdate'
              end>
          end>
        Name = 'b_document'
        Fields = <
          item
            Name = 'bd_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bd_type'
            DataType = datInteger
          end
          item
            Name = 'bd_level'
            DataType = datInteger
          end
          item
            Name = 'bd_parentid'
            DataType = datGuid
          end
          item
            Name = 'bd_filename'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bd_ext'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bd_size'
            DataType = datInteger
          end
          item
            Name = 'bd_desc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bd_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bd_createstaffiid'
            DataType = datInteger
          end
          item
            Name = 'bd_createdate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_user_companyvisible'
            SQL = 
              'SELECT '#10'    bucv_uiid, bucv_oiid, bucv_data, bo_simpname'#10'  FROM'#10 +
              '    b_user_companyvisible left outer join b_company on bucv_oiid' +
              '=bo_iid'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bucv_uiid'
                TableField = 'bucv_uiid'
              end
              item
                DatasetField = 'bucv_oiid'
                TableField = 'bucv_oiid'
              end
              item
                DatasetField = 'bucv_data'
                TableField = 'bucv_data'
              end
              item
                DatasetField = 'bo_simpname'
                TableField = '<unknown>'
                SQLOrigin = 'bo_simpname'
              end>
          end>
        Name = 'b_user_companyvisible'
        Fields = <
          item
            Name = 'bucv_uiid'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bucv_oiid'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bucv_data'
            DataType = datBoolean
          end
          item
            Name = 'bo_simpname'
            DataType = datString
            Size = 30
            ReadOnly = True
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_company'
            SQL = 
              'SELECT '#10'    bo_id, bo_iid, bo_no, bo_simpname, bo_cnname, bo_cna' +
              'ddress, '#10'    bo_enname, bo_enaddress, bo_type, bo_zipcode, bo_lo' +
              'go, '#10'    bo_signature, bo_isdefult, bo_tel, bo_tel2, bo_tel3, '#10' ' +
              '   bo_fax, bo_leader, bo_principal, bo_customenterprisecode, '#10'  ' +
              '  bo_enterprisecode, bo_shiper, bo_bankid, bo_remark, '#10'    bo_em' +
              'ail, bo_web, bo_createdate, bo_createstaff, bo_modifystaff, '#10'   ' +
              ' bo_modifydate,bo_projectno,bo_pino,bo_quotationno,bo_stockno,bo' +
              '_warehouseinno,bo_warehouseoutno,'#10'    bo_taxcode,bo_bankname,bo_' +
              'bankaccountno,bo_bankno,bo_swiftcode'#10'  FROM'#10'    b_company'#10'  WHER' +
              'E {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bo_id'
                TableField = 'bo_id'
              end
              item
                DatasetField = 'bo_iid'
                TableField = 'bo_iid'
              end
              item
                DatasetField = 'bo_no'
                TableField = 'bo_no'
              end
              item
                DatasetField = 'bo_simpname'
                TableField = 'bo_simpname'
              end
              item
                DatasetField = 'bo_cnname'
                TableField = 'bo_cnname'
              end
              item
                DatasetField = 'bo_cnaddress'
                TableField = 'bo_cnaddress'
              end
              item
                DatasetField = 'bo_enname'
                TableField = 'bo_enname'
              end
              item
                DatasetField = 'bo_enaddress'
                TableField = 'bo_enaddress'
              end
              item
                DatasetField = 'bo_type'
                TableField = 'bo_type'
              end
              item
                DatasetField = 'bo_zipcode'
                TableField = 'bo_zipcode'
              end
              item
                DatasetField = 'bo_logo'
                TableField = 'bo_logo'
              end
              item
                DatasetField = 'bo_signature'
                TableField = 'bo_signature'
              end
              item
                DatasetField = 'bo_isdefult'
                TableField = 'bo_isdefult'
              end
              item
                DatasetField = 'bo_tel'
                TableField = 'bo_tel'
              end
              item
                DatasetField = 'bo_tel2'
                TableField = 'bo_tel2'
              end
              item
                DatasetField = 'bo_tel3'
                TableField = 'bo_tel3'
              end
              item
                DatasetField = 'bo_fax'
                TableField = 'bo_fax'
              end
              item
                DatasetField = 'bo_leader'
                TableField = 'bo_leader'
              end
              item
                DatasetField = 'bo_principal'
                TableField = 'bo_principal'
              end
              item
                DatasetField = 'bo_customenterprisecode'
                TableField = 'bo_customenterprisecode'
              end
              item
                DatasetField = 'bo_enterprisecode'
                TableField = 'bo_enterprisecode'
              end
              item
                DatasetField = 'bo_shiper'
                TableField = 'bo_shiper'
              end
              item
                DatasetField = 'bo_bankid'
                TableField = 'bo_bankid'
              end
              item
                DatasetField = 'bo_remark'
                TableField = 'bo_remark'
              end
              item
                DatasetField = 'bo_email'
                TableField = 'bo_email'
              end
              item
                DatasetField = 'bo_web'
                TableField = 'bo_web'
              end
              item
                DatasetField = 'bo_createdate'
                TableField = 'bo_createdate'
              end
              item
                DatasetField = 'bo_createstaff'
                TableField = 'bo_createstaff'
              end
              item
                DatasetField = 'bo_modifystaff'
                TableField = 'bo_modifystaff'
              end
              item
                DatasetField = 'bo_modifydate'
                TableField = 'bo_modifydate'
              end
              item
                DatasetField = 'bo_projectno'
                TableField = 'bo_projectno'
              end
              item
                DatasetField = 'bo_pino'
                TableField = 'bo_pino'
              end
              item
                DatasetField = 'bo_quotationno'
                TableField = 'bo_quotationno'
              end
              item
                DatasetField = 'bo_stockno'
                TableField = 'bo_stockno'
              end
              item
                DatasetField = 'bo_warehouseinno'
                TableField = 'bo_warehouseinno'
              end
              item
                DatasetField = 'bo_warehouseoutno'
                TableField = 'bo_warehouseoutno'
              end
              item
                DatasetField = 'bo_taxcode'
                TableField = 'bo_taxcode'
              end
              item
                DatasetField = 'bo_bankname'
                TableField = 'bo_bankname'
              end
              item
                DatasetField = 'bo_bankaccountno'
                TableField = 'bo_bankaccountno'
              end
              item
                DatasetField = 'bo_bankno'
                TableField = 'bo_bankno'
              end
              item
                DatasetField = 'bo_swiftcode'
                TableField = 'bo_swiftcode'
              end>
          end>
        Name = 'b_company'
        Fields = <
          item
            Name = 'bo_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bo_iid'
            DataType = datAutoInc
            GeneratorName = 'b_company'
            Required = True
          end
          item
            Name = 'bo_no'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'bo_simpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_cnname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_cnaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bo_enname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_enaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bo_type'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bo_zipcode'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bo_logo'
            DataType = datBlob
          end
          item
            Name = 'bo_signature'
            DataType = datBlob
          end
          item
            Name = 'bo_isdefult'
            DataType = datBoolean
          end
          item
            Name = 'bo_tel'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_tel2'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_tel3'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_fax'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_leader'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bo_principal'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_customenterprisecode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_enterprisecode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_shiper'
            DataType = datString
            Size = 500
          end
          item
            Name = 'bo_bankid'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bo_remark'
            DataType = datString
            Size = 1000
          end
          item
            Name = 'bo_email'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_web'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bo_createdate'
            DataType = datDateTime
          end
          item
            Name = 'bo_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'bo_projectno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_pino'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_quotationno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_stockno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_warehouseinno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_warehouseoutno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_taxcode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_bankname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_bankaccountno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_bankno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bo_swiftcode'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_projectlist'
            SQL = 
              'SELECT '#10'    dpl_id, dpl_no, dpl_realno, dpl_cid, dpl_cno, dpl_cs' +
              'impname, '#10'    dpl_oid, dpl_oiid, dpl_osimpname, dpl_title, dpl_d' +
              'esc, '#10'    dpl_type, dpl_staffid, dpl_staffiid, dpl_staff, dpl_de' +
              'partment, '#10'    dpl_date, dpl_level, dpl_producttype, dpl_follows' +
              'tate, '#10'    dpl_followdate, dpl_quotationdate, dpl_quotationamt, ' +
              #10'    dpl_state, dpl_createstaff, dpl_createdate, dpl_modifystaff' +
              ', '#10'    dpl_modifydate, dpl_remark, dpl_scope, dpl_piid, dpl_pino' +
              ', dpl_batchno,dpl_mcode'#10'  FROM'#10'    d_projectlist'#10'  WHERE {Where}' +
              #10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpl_id'
                TableField = 'dpl_id'
              end
              item
                DatasetField = 'dpl_no'
                TableField = 'dpl_no'
              end
              item
                DatasetField = 'dpl_realno'
                TableField = 'dpl_realno'
              end
              item
                DatasetField = 'dpl_cid'
                TableField = 'dpl_cid'
              end
              item
                DatasetField = 'dpl_cno'
                TableField = 'dpl_cno'
              end
              item
                DatasetField = 'dpl_csimpname'
                TableField = 'dpl_csimpname'
              end
              item
                DatasetField = 'dpl_oid'
                TableField = 'dpl_oid'
              end
              item
                DatasetField = 'dpl_oiid'
                TableField = 'dpl_oiid'
              end
              item
                DatasetField = 'dpl_osimpname'
                TableField = 'dpl_osimpname'
              end
              item
                DatasetField = 'dpl_title'
                TableField = 'dpl_title'
              end
              item
                DatasetField = 'dpl_desc'
                TableField = 'dpl_desc'
              end
              item
                DatasetField = 'dpl_type'
                TableField = 'dpl_type'
              end
              item
                DatasetField = 'dpl_staffid'
                TableField = 'dpl_staffid'
              end
              item
                DatasetField = 'dpl_staffiid'
                TableField = 'dpl_staffiid'
              end
              item
                DatasetField = 'dpl_staff'
                TableField = 'dpl_staff'
              end
              item
                DatasetField = 'dpl_department'
                TableField = 'dpl_department'
              end
              item
                DatasetField = 'dpl_date'
                TableField = 'dpl_date'
              end
              item
                DatasetField = 'dpl_level'
                TableField = 'dpl_level'
              end
              item
                DatasetField = 'dpl_producttype'
                TableField = 'dpl_producttype'
              end
              item
                DatasetField = 'dpl_followstate'
                TableField = 'dpl_followstate'
              end
              item
                DatasetField = 'dpl_followdate'
                TableField = 'dpl_followdate'
              end
              item
                DatasetField = 'dpl_quotationdate'
                TableField = 'dpl_quotationdate'
              end
              item
                DatasetField = 'dpl_quotationamt'
                TableField = 'dpl_quotationamt'
              end
              item
                DatasetField = 'dpl_state'
                TableField = 'dpl_state'
              end
              item
                DatasetField = 'dpl_createstaff'
                TableField = 'dpl_createstaff'
              end
              item
                DatasetField = 'dpl_createdate'
                TableField = 'dpl_createdate'
              end
              item
                DatasetField = 'dpl_modifystaff'
                TableField = 'dpl_modifystaff'
              end
              item
                DatasetField = 'dpl_modifydate'
                TableField = 'dpl_modifydate'
              end
              item
                DatasetField = 'dpl_remark'
                TableField = 'dpl_remark'
              end
              item
                DatasetField = 'dpl_scope'
                TableField = 'dpl_scope'
              end
              item
                DatasetField = 'dpl_piid'
                TableField = 'dpl_piid'
              end
              item
                DatasetField = 'dpl_pino'
                TableField = 'dpl_pino'
              end
              item
                DatasetField = 'dpl_batchno'
                TableField = 'dpl_batchno'
              end
              item
                DatasetField = 'dpl_mcode'
                TableField = 'dpl_mcode'
              end>
          end>
        Name = 'd_projectlist'
        Fields = <
          item
            Name = 'dpl_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpl_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_realno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_cid'
            DataType = datGuid
          end
          item
            Name = 'dpl_cno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dpl_csimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_oid'
            DataType = datGuid
          end
          item
            Name = 'dpl_oiid'
            DataType = datInteger
          end
          item
            Name = 'dpl_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_title'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpl_desc'
            DataType = datString
            Size = 1000
          end
          item
            Name = 'dpl_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_staffid'
            DataType = datGuid
          end
          item
            Name = 'dpl_staffiid'
            DataType = datInteger
          end
          item
            Name = 'dpl_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_date'
            DataType = datDateTime
          end
          item
            Name = 'dpl_level'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dpl_producttype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_followstate'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpl_followdate'
            DataType = datDateTime
          end
          item
            Name = 'dpl_quotationdate'
            DataType = datDateTime
          end
          item
            Name = 'dpl_quotationamt'
            DataType = datFloat
          end
          item
            Name = 'dpl_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dpl_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dpl_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dpl_scope'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_piid'
            DataType = datGuid
          end
          item
            Name = 'dpl_pino'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_batchno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpl_mcode'
            DataType = datString
            Size = 10
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_productinfo'
            SQL = 
              'SELECT '#10'    bpi_id, bpi_cid, bpi_cname, bpi_no, bpi_realno, bpi_' +
              'simpname, '#10'    bpi_cnname, bpi_enname, bpi_buyprice, bpi_sellpri' +
              'ce, '#10'    bpi_fid, bpi_fno, bpi_fsimpname, bpi_desc, bpi_picturei' +
              'd, '#10'    bpi_sellmcode, bpi_sellrate, bpi_buymcode, bpi_buyrate, ' +
              #10'    bpi_unit, bpi_gw, bpi_confirmer, bpi_remark, bpi_createstaf' +
              'f, '#10'    bpi_createdate, bpi_modifystaff, bpi_modifydate,bpi_hsco' +
              'de,bpi_salerate,bpi_customrate,bpi_buymcode2,bpi_buymcode3,bpi_b' +
              'uymcode4,bpi_buymcode5,'#10'    bpi_fsimpname2,bpi_buyprice2,bpi_fsi' +
              'mpname3,bpi_buyprice3,bpi_fsimpname4,bpi_buyprice4,bpi_fsimpname' +
              '5,bpi_buyprice5'#10'  FROM'#10'    b_productinfo'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bpi_id'
                TableField = 'bpi_id'
              end
              item
                DatasetField = 'bpi_cid'
                TableField = 'bpi_cid'
              end
              item
                DatasetField = 'bpi_cname'
                TableField = 'bpi_cname'
              end
              item
                DatasetField = 'bpi_no'
                TableField = 'bpi_no'
              end
              item
                DatasetField = 'bpi_realno'
                TableField = 'bpi_realno'
              end
              item
                DatasetField = 'bpi_simpname'
                TableField = 'bpi_simpname'
              end
              item
                DatasetField = 'bpi_cnname'
                TableField = 'bpi_cnname'
              end
              item
                DatasetField = 'bpi_enname'
                TableField = 'bpi_enname'
              end
              item
                DatasetField = 'bpi_buyprice'
                TableField = 'bpi_buyprice'
              end
              item
                DatasetField = 'bpi_sellprice'
                TableField = 'bpi_sellprice'
              end
              item
                DatasetField = 'bpi_fid'
                TableField = 'bpi_fid'
              end
              item
                DatasetField = 'bpi_fno'
                TableField = 'bpi_fno'
              end
              item
                DatasetField = 'bpi_fsimpname'
                TableField = 'bpi_fsimpname'
              end
              item
                DatasetField = 'bpi_desc'
                TableField = 'bpi_desc'
              end
              item
                DatasetField = 'bpi_pictureid'
                TableField = 'bpi_pictureid'
              end
              item
                DatasetField = 'bpi_sellmcode'
                TableField = 'bpi_sellmcode'
              end
              item
                DatasetField = 'bpi_sellrate'
                TableField = 'bpi_sellrate'
              end
              item
                DatasetField = 'bpi_buymcode'
                TableField = 'bpi_buymcode'
              end
              item
                DatasetField = 'bpi_buyrate'
                TableField = 'bpi_buyrate'
              end
              item
                DatasetField = 'bpi_unit'
                TableField = 'bpi_unit'
              end
              item
                DatasetField = 'bpi_gw'
                TableField = 'bpi_gw'
              end
              item
                DatasetField = 'bpi_confirmer'
                TableField = 'bpi_confirmer'
              end
              item
                DatasetField = 'bpi_remark'
                TableField = 'bpi_remark'
              end
              item
                DatasetField = 'bpi_createstaff'
                TableField = 'bpi_createstaff'
              end
              item
                DatasetField = 'bpi_createdate'
                TableField = 'bpi_createdate'
              end
              item
                DatasetField = 'bpi_modifystaff'
                TableField = 'bpi_modifystaff'
              end
              item
                DatasetField = 'bpi_modifydate'
                TableField = 'bpi_modifydate'
              end
              item
                DatasetField = 'bpi_hscode'
                TableField = 'bpi_hscode'
              end
              item
                DatasetField = 'bpi_salerate'
                TableField = 'bpi_salerate'
              end
              item
                DatasetField = 'bpi_customrate'
                TableField = 'bpi_customrate'
              end
              item
                DatasetField = 'bpi_fsimpname2'
                TableField = 'bpi_fsimpname2'
              end
              item
                DatasetField = 'bpi_buyprice2'
                TableField = 'bpi_buyprice2'
              end
              item
                DatasetField = 'bpi_fsimpname3'
                TableField = 'bpi_fsimpname3'
              end
              item
                DatasetField = 'bpi_buyprice3'
                TableField = 'bpi_buyprice3'
              end
              item
                DatasetField = 'bpi_fsimpname4'
                TableField = 'bpi_fsimpname4'
              end
              item
                DatasetField = 'bpi_buyprice4'
                TableField = 'bpi_buyprice4'
              end
              item
                DatasetField = 'bpi_fsimpname5'
                TableField = 'bpi_fsimpname5'
              end
              item
                DatasetField = 'bpi_buyprice5'
                TableField = 'bpi_buyprice5'
              end
              item
                DatasetField = 'bpi_buymcode2'
                TableField = 'bpi_buymcode2'
              end
              item
                DatasetField = 'bpi_buymcode3'
                TableField = 'bpi_buymcode3'
              end
              item
                DatasetField = 'bpi_buymcode4'
                TableField = 'bpi_buymcode4'
              end
              item
                DatasetField = 'bpi_buymcode5'
                TableField = 'bpi_buymcode5'
              end>
          end>
        Name = 'b_productinfo'
        Fields = <
          item
            Name = 'bpi_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bpi_cid'
            DataType = datGuid
          end
          item
            Name = 'bpi_cname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_realno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bpi_simpname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bpi_cnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bpi_enname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bpi_buyprice'
            DataType = datFloat
          end
          item
            Name = 'bpi_sellprice'
            DataType = datFloat
          end
          item
            Name = 'bpi_fid'
            DataType = datGuid
          end
          item
            Name = 'bpi_fno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bpi_fsimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_desc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'bpi_pictureid'
            DataType = datGuid
          end
          item
            Name = 'bpi_sellmcode'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bpi_sellrate'
            DataType = datFloat
          end
          item
            Name = 'bpi_buymcode'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bpi_buyrate'
            DataType = datFloat
          end
          item
            Name = 'bpi_unit'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bpi_gw'
            DataType = datFloat
          end
          item
            Name = 'bpi_confirmer'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'bpi_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_createdate'
            DataType = datDateTime
          end
          item
            Name = 'bpi_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'bpi_hscode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_salerate'
            DataType = datFloat
          end
          item
            Name = 'bpi_customrate'
            DataType = datFloat
          end
          item
            Name = 'bpi_buymcode2'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bpi_buymcode3'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bpi_buymcode4'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bpi_buymcode5'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bpi_fsimpname2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_buyprice2'
            DataType = datFloat
          end
          item
            Name = 'bpi_fsimpname3'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_buyprice3'
            DataType = datFloat
          end
          item
            Name = 'bpi_fsimpname4'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_buyprice4'
            DataType = datFloat
          end
          item
            Name = 'bpi_fsimpname5'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_buyprice5'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_projectstate'
            SQL = 
              'SELECT '#10'    dps_pid, dps_serial, dps_state, dps_billtype, dps_bi' +
              'llid, '#10'    dps_billno, dps_date, dps_remark ,dps_filename,dps_fi' +
              'leext,dps_staff'#10'  FROM'#10'    d_projectstate'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dps_pid'
                TableField = 'dps_pid'
              end
              item
                DatasetField = 'dps_serial'
                TableField = 'dps_serial'
              end
              item
                DatasetField = 'dps_state'
                TableField = 'dps_state'
              end
              item
                DatasetField = 'dps_billtype'
                TableField = 'dps_billtype'
              end
              item
                DatasetField = 'dps_billid'
                TableField = 'dps_billid'
              end
              item
                DatasetField = 'dps_billno'
                TableField = 'dps_billno'
              end
              item
                DatasetField = 'dps_date'
                TableField = 'dps_date'
              end
              item
                DatasetField = 'dps_remark'
                TableField = 'dps_remark'
              end
              item
                DatasetField = 'dps_filename'
                TableField = 'dps_filename'
              end
              item
                DatasetField = 'dps_fileext'
                TableField = 'dps_fileext'
              end
              item
                DatasetField = 'dps_staff'
                TableField = 'dps_staff'
              end>
          end>
        Name = 'd_projectstate'
        Fields = <
          item
            Name = 'dps_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dps_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dps_state'
            DataType = datString
            Size = 4000
          end
          item
            Name = 'dps_billtype'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dps_billid'
            DataType = datGuid
          end
          item
            Name = 'dps_billno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dps_date'
            DataType = datDateTime
          end
          item
            Name = 'dps_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dps_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dps_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dps_staff'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_projectlistitem'
            SQL = 
              'SELECT '#10'    dpli_pid, dpli_serial, dpli_productid, dpli_pno, dpl' +
              'i_prealno, '#10'    dpli_cproductno, dpli_psimpname, dpli_penname, d' +
              'pli_pcnname, '#10'    dpli_desc, dpli_num, dpli_remark'#10'  FROM'#10'    d_' +
              'projectlistitem'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpli_pid'
                TableField = 'dpli_pid'
              end
              item
                DatasetField = 'dpli_serial'
                TableField = 'dpli_serial'
              end
              item
                DatasetField = 'dpli_productid'
                TableField = 'dpli_productid'
              end
              item
                DatasetField = 'dpli_pno'
                TableField = 'dpli_pno'
              end
              item
                DatasetField = 'dpli_prealno'
                TableField = 'dpli_prealno'
              end
              item
                DatasetField = 'dpli_cproductno'
                TableField = 'dpli_cproductno'
              end
              item
                DatasetField = 'dpli_psimpname'
                TableField = 'dpli_psimpname'
              end
              item
                DatasetField = 'dpli_penname'
                TableField = 'dpli_penname'
              end
              item
                DatasetField = 'dpli_pcnname'
                TableField = 'dpli_pcnname'
              end
              item
                DatasetField = 'dpli_desc'
                TableField = 'dpli_desc'
              end
              item
                DatasetField = 'dpli_num'
                TableField = 'dpli_num'
              end
              item
                DatasetField = 'dpli_remark'
                TableField = 'dpli_remark'
              end>
          end>
        Name = 'd_projectlistitem'
        Fields = <
          item
            Name = 'dpli_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpli_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpli_productid'
            DataType = datGuid
          end
          item
            Name = 'dpli_pno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpli_prealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpli_cproductno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpli_psimpname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpli_penname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpli_pcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpli_desc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpli_num'
            DataType = datFloat
          end
          item
            Name = 'dpli_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_inquireproduct'
            SQL = 
              'SELECT '#10'    dip_id, dip_no, dip_realno, dip_cproductno, dip_oid,' +
              ' '#10'    dip_oiid, dip_osimpname, dip_cid, dip_cno, dip_csimpname, ' +
              #10'    dip_name, dip_cnname, dip_enname, dip_desc, dip_pcid, '#10'    ' +
              'dip_pcname, dip_sellprice, dip_buyprice, dip_state, '#10'    dip_con' +
              'firmer, dip_confirmerid, dip_sellmcode, dip_sellrate, '#10'    dip_b' +
              'uymcode, dip_buyrate, dip_createstaff, dip_createdate, '#10'    dip_' +
              'modifystaff, dip_modifydate, dip_fiid, dip_fiserial, '#10'    dip_un' +
              'it, dip_staff, dip_staffid, dip_staffiid, dip_department, '#10'    d' +
              'ip_remark, dip_projectid, dip_projectno, dip_towho'#10'  FROM'#10'    d_' +
              'inquireproduct'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dip_id'
                TableField = 'dip_id'
              end
              item
                DatasetField = 'dip_no'
                TableField = 'dip_no'
              end
              item
                DatasetField = 'dip_realno'
                TableField = 'dip_realno'
              end
              item
                DatasetField = 'dip_cproductno'
                TableField = 'dip_cproductno'
              end
              item
                DatasetField = 'dip_oid'
                TableField = 'dip_oid'
              end
              item
                DatasetField = 'dip_oiid'
                TableField = 'dip_oiid'
              end
              item
                DatasetField = 'dip_osimpname'
                TableField = 'dip_osimpname'
              end
              item
                DatasetField = 'dip_cid'
                TableField = 'dip_cid'
              end
              item
                DatasetField = 'dip_cno'
                TableField = 'dip_cno'
              end
              item
                DatasetField = 'dip_csimpname'
                TableField = 'dip_csimpname'
              end
              item
                DatasetField = 'dip_name'
                TableField = 'dip_name'
              end
              item
                DatasetField = 'dip_cnname'
                TableField = 'dip_cnname'
              end
              item
                DatasetField = 'dip_enname'
                TableField = 'dip_enname'
              end
              item
                DatasetField = 'dip_desc'
                TableField = 'dip_desc'
              end
              item
                DatasetField = 'dip_pcid'
                TableField = 'dip_pcid'
              end
              item
                DatasetField = 'dip_pcname'
                TableField = 'dip_pcname'
              end
              item
                DatasetField = 'dip_sellprice'
                TableField = 'dip_sellprice'
              end
              item
                DatasetField = 'dip_buyprice'
                TableField = 'dip_buyprice'
              end
              item
                DatasetField = 'dip_state'
                TableField = 'dip_state'
              end
              item
                DatasetField = 'dip_confirmer'
                TableField = 'dip_confirmer'
              end
              item
                DatasetField = 'dip_confirmerid'
                TableField = 'dip_confirmerid'
              end
              item
                DatasetField = 'dip_sellmcode'
                TableField = 'dip_sellmcode'
              end
              item
                DatasetField = 'dip_sellrate'
                TableField = 'dip_sellrate'
              end
              item
                DatasetField = 'dip_buymcode'
                TableField = 'dip_buymcode'
              end
              item
                DatasetField = 'dip_buyrate'
                TableField = 'dip_buyrate'
              end
              item
                DatasetField = 'dip_createstaff'
                TableField = 'dip_createstaff'
              end
              item
                DatasetField = 'dip_createdate'
                TableField = 'dip_createdate'
              end
              item
                DatasetField = 'dip_modifystaff'
                TableField = 'dip_modifystaff'
              end
              item
                DatasetField = 'dip_modifydate'
                TableField = 'dip_modifydate'
              end
              item
                DatasetField = 'dip_fiid'
                TableField = 'dip_fiid'
              end
              item
                DatasetField = 'dip_fiserial'
                TableField = 'dip_fiserial'
              end
              item
                DatasetField = 'dip_unit'
                TableField = 'dip_unit'
              end
              item
                DatasetField = 'dip_staff'
                TableField = 'dip_staff'
              end
              item
                DatasetField = 'dip_staffid'
                TableField = 'dip_staffid'
              end
              item
                DatasetField = 'dip_staffiid'
                TableField = 'dip_staffiid'
              end
              item
                DatasetField = 'dip_department'
                TableField = 'dip_department'
              end
              item
                DatasetField = 'dip_remark'
                TableField = 'dip_remark'
              end
              item
                DatasetField = 'dip_projectid'
                TableField = 'dip_projectid'
              end
              item
                DatasetField = 'dip_projectno'
                TableField = 'dip_projectno'
              end
              item
                DatasetField = 'dip_towho'
                TableField = 'dip_towho'
              end>
          end>
        Name = 'd_inquireproduct'
        Fields = <
          item
            Name = 'dip_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dip_no'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'dip_realno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dip_cproductno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dip_oid'
            DataType = datGuid
          end
          item
            Name = 'dip_oiid'
            DataType = datInteger
          end
          item
            Name = 'dip_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_cid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dip_cno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dip_csimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_name'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dip_cnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dip_enname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dip_desc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dip_pcid'
            DataType = datGuid
          end
          item
            Name = 'dip_pcname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dip_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dip_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dip_confirmer'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_confirmerid'
            DataType = datGuid
          end
          item
            Name = 'dip_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dip_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dip_buymcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dip_buyrate'
            DataType = datFloat
          end
          item
            Name = 'dip_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dip_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dip_fiid'
            DataType = datGuid
          end
          item
            Name = 'dip_fiserial'
            DataType = datInteger
          end
          item
            Name = 'dip_unit'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_staffid'
            DataType = datGuid
          end
          item
            Name = 'dip_staffiid'
            DataType = datInteger
          end
          item
            Name = 'dip_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dip_projectid'
            DataType = datGuid
          end
          item
            Name = 'dip_projectno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dip_towho'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_quotation'
            SQL = 
              'SELECT '#10'    dq_id, dq_no, dq_date, dq_cid, dq_cno, dq_csimpname,' +
              ' '#10'    dq_ccontact, dq_fax, dq_staff, dq_staffid, dq_priceterm, '#10 +
              '    dq_paymentmode, dq_transporttype, dq_deliarea, dq_delidate, ' +
              #10'    dq_mcode, dq_rate, dq_checkstate, dq_state, dq_confirmdate,' +
              ' '#10'    dq_remark, dq_productname, dq_createstaff, dq_createdate, ' +
              #10'    dq_modifystaff, dq_modifydate, dq_checkstaff, dq_checkdate,' +
              ' '#10'    dq_department, dq_oid, dq_oiid, dq_osimpname, dq_amt,dq_ra' +
              'tio,'#10'    dq_projectid, dq_projectno, dq_projectrealno, dq_versio' +
              'nno,dq_batchno,'#10'    dq_versiondesc, dq_isactive,dq_checkrequests' +
              'taff,dq_checkrequestid,dq_qty,dq_validdate'#10'  FROM'#10'    d_quotatio' +
              'n'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dq_id'
                TableField = 'dq_id'
              end
              item
                DatasetField = 'dq_no'
                TableField = 'dq_no'
              end
              item
                DatasetField = 'dq_date'
                TableField = 'dq_date'
              end
              item
                DatasetField = 'dq_cid'
                TableField = 'dq_cid'
              end
              item
                DatasetField = 'dq_cno'
                TableField = 'dq_cno'
              end
              item
                DatasetField = 'dq_csimpname'
                TableField = 'dq_csimpname'
              end
              item
                DatasetField = 'dq_ccontact'
                TableField = 'dq_ccontact'
              end
              item
                DatasetField = 'dq_fax'
                TableField = 'dq_fax'
              end
              item
                DatasetField = 'dq_staff'
                TableField = 'dq_staff'
              end
              item
                DatasetField = 'dq_staffid'
                TableField = 'dq_staffid'
              end
              item
                DatasetField = 'dq_priceterm'
                TableField = 'dq_priceterm'
              end
              item
                DatasetField = 'dq_paymentmode'
                TableField = 'dq_paymentmode'
              end
              item
                DatasetField = 'dq_transporttype'
                TableField = 'dq_transporttype'
              end
              item
                DatasetField = 'dq_deliarea'
                TableField = 'dq_deliarea'
              end
              item
                DatasetField = 'dq_delidate'
                TableField = 'dq_delidate'
              end
              item
                DatasetField = 'dq_mcode'
                TableField = 'dq_mcode'
              end
              item
                DatasetField = 'dq_rate'
                TableField = 'dq_rate'
              end
              item
                DatasetField = 'dq_checkstate'
                TableField = 'dq_checkstate'
              end
              item
                DatasetField = 'dq_state'
                TableField = 'dq_state'
              end
              item
                DatasetField = 'dq_confirmdate'
                TableField = 'dq_confirmdate'
              end
              item
                DatasetField = 'dq_remark'
                TableField = 'dq_remark'
              end
              item
                DatasetField = 'dq_productname'
                TableField = 'dq_productname'
              end
              item
                DatasetField = 'dq_createstaff'
                TableField = 'dq_createstaff'
              end
              item
                DatasetField = 'dq_createdate'
                TableField = 'dq_createdate'
              end
              item
                DatasetField = 'dq_modifystaff'
                TableField = 'dq_modifystaff'
              end
              item
                DatasetField = 'dq_modifydate'
                TableField = 'dq_modifydate'
              end
              item
                DatasetField = 'dq_checkstaff'
                TableField = 'dq_checkstaff'
              end
              item
                DatasetField = 'dq_checkdate'
                TableField = 'dq_checkdate'
              end
              item
                DatasetField = 'dq_department'
                TableField = 'dq_department'
              end
              item
                DatasetField = 'dq_oid'
                TableField = 'dq_oid'
              end
              item
                DatasetField = 'dq_oiid'
                TableField = 'dq_oiid'
              end
              item
                DatasetField = 'dq_osimpname'
                TableField = 'dq_osimpname'
              end
              item
                DatasetField = 'dq_amt'
                TableField = 'dq_amt'
              end
              item
                DatasetField = 'dq_projectid'
                TableField = 'dq_projectid'
              end
              item
                DatasetField = 'dq_projectno'
                TableField = 'dq_projectno'
              end
              item
                DatasetField = 'dq_projectrealno'
                TableField = 'dq_projectrealno'
              end
              item
                DatasetField = 'dq_versionno'
                TableField = 'dq_versionno'
              end
              item
                DatasetField = 'dq_versiondesc'
                TableField = 'dq_versiondesc'
              end
              item
                DatasetField = 'dq_isactive'
                TableField = 'dq_isactive'
              end
              item
                DatasetField = 'dq_checkrequeststaff'
                TableField = 'dq_checkrequeststaff'
              end
              item
                DatasetField = 'dq_checkrequestid'
                TableField = 'dq_checkrequestid'
              end
              item
                DatasetField = 'dq_qty'
                TableField = 'dq_qty'
              end
              item
                DatasetField = 'dq_validdate'
                TableField = 'dq_validdate'
              end
              item
                DatasetField = 'dq_batchno'
                TableField = 'dq_batchno'
              end
              item
                DatasetField = 'dq_ratio'
                TableField = 'dq_ratio'
              end>
          end>
        Name = 'd_quotation'
        Fields = <
          item
            Name = 'dq_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dq_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dq_date'
            DataType = datDateTime
          end
          item
            Name = 'dq_cid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dq_cno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_csimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_ccontact'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_fax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_staffid'
            DataType = datGuid
          end
          item
            Name = 'dq_priceterm'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dq_paymentmode'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dq_transporttype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_deliarea'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_delidate'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dq_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dq_rate'
            DataType = datFloat
          end
          item
            Name = 'dq_checkstate'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dq_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dq_confirmdate'
            DataType = datDateTime
          end
          item
            Name = 'dq_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dq_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dq_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dq_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dq_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dq_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_oid'
            DataType = datGuid
          end
          item
            Name = 'dq_oiid'
            DataType = datInteger
          end
          item
            Name = 'dq_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_amt'
            DataType = datFloat
          end
          item
            Name = 'dq_ratio'
            DataType = datFloat
          end
          item
            Name = 'dq_projectid'
            DataType = datGuid
          end
          item
            Name = 'dq_projectno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_projectrealno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_versionno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_batchno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_versiondesc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dq_isactive'
            DataType = datBoolean
          end
          item
            Name = 'dq_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dq_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dq_qty'
            DataType = datFloat
          end
          item
            Name = 'dq_validdate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_verification'
            SQL = 
              'SELECT '#10'    dv_id, dv_oid, dv_oiid, dv_osimpname, dv_no, dv_stat' +
              'e, '#10'    dv_paydate, dv_paytype, dv_mcode, dv_tradecountry, '#10'    ' +
              'dv_staff, dv_department, dv_createstaff, dv_createdate, '#10'    dv_' +
              'modifystaff, dv_modifydate, dv_estiverdate, dv_verdate, '#10'    dv_' +
              'customnos, dv_customamt, dv_customdate, dv_estiindate, '#10'    dv_p' +
              'roducttitle, dv_remark, dv_billnos'#10'  FROM'#10'    d_verification'#10'  W' +
              'HERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dv_id'
                TableField = 'dv_id'
              end
              item
                DatasetField = 'dv_oid'
                TableField = 'dv_oid'
              end
              item
                DatasetField = 'dv_oiid'
                TableField = 'dv_oiid'
              end
              item
                DatasetField = 'dv_osimpname'
                TableField = 'dv_osimpname'
              end
              item
                DatasetField = 'dv_no'
                TableField = 'dv_no'
              end
              item
                DatasetField = 'dv_state'
                TableField = 'dv_state'
              end
              item
                DatasetField = 'dv_paydate'
                TableField = 'dv_paydate'
              end
              item
                DatasetField = 'dv_paytype'
                TableField = 'dv_paytype'
              end
              item
                DatasetField = 'dv_mcode'
                TableField = 'dv_mcode'
              end
              item
                DatasetField = 'dv_tradecountry'
                TableField = 'dv_tradecountry'
              end
              item
                DatasetField = 'dv_staff'
                TableField = 'dv_staff'
              end
              item
                DatasetField = 'dv_department'
                TableField = 'dv_department'
              end
              item
                DatasetField = 'dv_createstaff'
                TableField = 'dv_createstaff'
              end
              item
                DatasetField = 'dv_createdate'
                TableField = 'dv_createdate'
              end
              item
                DatasetField = 'dv_modifystaff'
                TableField = 'dv_modifystaff'
              end
              item
                DatasetField = 'dv_modifydate'
                TableField = 'dv_modifydate'
              end
              item
                DatasetField = 'dv_estiverdate'
                TableField = 'dv_estiverdate'
              end
              item
                DatasetField = 'dv_verdate'
                TableField = 'dv_verdate'
              end
              item
                DatasetField = 'dv_customnos'
                TableField = 'dv_customnos'
              end
              item
                DatasetField = 'dv_customamt'
                TableField = 'dv_customamt'
              end
              item
                DatasetField = 'dv_customdate'
                TableField = 'dv_customdate'
              end
              item
                DatasetField = 'dv_estiindate'
                TableField = 'dv_estiindate'
              end
              item
                DatasetField = 'dv_producttitle'
                TableField = 'dv_producttitle'
              end
              item
                DatasetField = 'dv_remark'
                TableField = 'dv_remark'
              end
              item
                DatasetField = 'dv_billnos'
                TableField = 'dv_billnos'
              end>
          end>
        Name = 'd_verification'
        Fields = <
          item
            Name = 'dv_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dv_oid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dv_oiid'
            DataType = datInteger
          end
          item
            Name = 'dv_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dv_no'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'dv_state'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dv_paydate'
            DataType = datDateTime
          end
          item
            Name = 'dv_paytype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dv_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dv_tradecountry'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dv_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dv_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dv_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dv_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dv_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dv_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dv_estiverdate'
            DataType = datDateTime
          end
          item
            Name = 'dv_verdate'
            DataType = datDateTime
          end
          item
            Name = 'dv_customnos'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dv_customamt'
            DataType = datFloat
          end
          item
            Name = 'dv_customdate'
            DataType = datDateTime
          end
          item
            Name = 'dv_estiindate'
            DataType = datDateTime
          end
          item
            Name = 'dv_producttitle'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dv_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dv_billnos'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_lcstate'
            SQL = 
              'SELECT '#10'    dls_pid, dls_serial, dls_state, dls_date, dls_remark' +
              #10'  FROM'#10'    d_lcstate'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dls_pid'
                TableField = 'dls_pid'
              end
              item
                DatasetField = 'dls_serial'
                TableField = 'dls_serial'
              end
              item
                DatasetField = 'dls_state'
                TableField = 'dls_state'
              end
              item
                DatasetField = 'dls_date'
                TableField = 'dls_date'
              end
              item
                DatasetField = 'dls_remark'
                TableField = 'dls_remark'
              end>
          end>
        Name = 'd_lcstate'
        Fields = <
          item
            Name = 'dls_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dls_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dls_state'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dls_date'
            DataType = datDateTime
          end
          item
            Name = 'dls_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_lcmodify'
            SQL = 
              'SELECT '#10'    dlm_pid, dlm_serial, dlm_date, dlm_cont, dlm_reason'#10 +
              '  FROM'#10'    d_lcmodify'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dlm_pid'
                TableField = 'dlm_pid'
              end
              item
                DatasetField = 'dlm_serial'
                TableField = 'dlm_serial'
              end
              item
                DatasetField = 'dlm_date'
                TableField = 'dlm_date'
              end
              item
                DatasetField = 'dlm_cont'
                TableField = 'dlm_cont'
              end
              item
                DatasetField = 'dlm_reason'
                TableField = 'dlm_reason'
              end>
          end>
        Name = 'd_lcmodify'
        Fields = <
          item
            Name = 'dlm_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dlm_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dlm_date'
            DataType = datDateTime
          end
          item
            Name = 'dlm_cont'
            DataType = datString
            Size = 1000
          end
          item
            Name = 'dlm_reason'
            DataType = datString
            Size = 255
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_warehouse'
            SQL = 
              'SELECT '#10'    bwh_id, bwh_name, bwh_address, bwh_staff, bwh_tel, '#10 +
              '    bwh_fax, bwh_remark, bwh_createstaff, bwh_createdate, '#10'    b' +
              'wh_modifystaff, bwh_modifydate, bwh_oid, bwh_oiid, '#10'    bwh_osim' +
              'pname'#10'  FROM'#10'    b_warehouse'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bwh_id'
                TableField = 'bwh_id'
              end
              item
                DatasetField = 'bwh_name'
                TableField = 'bwh_name'
              end
              item
                DatasetField = 'bwh_address'
                TableField = 'bwh_address'
              end
              item
                DatasetField = 'bwh_staff'
                TableField = 'bwh_staff'
              end
              item
                DatasetField = 'bwh_tel'
                TableField = 'bwh_tel'
              end
              item
                DatasetField = 'bwh_fax'
                TableField = 'bwh_fax'
              end
              item
                DatasetField = 'bwh_remark'
                TableField = 'bwh_remark'
              end
              item
                DatasetField = 'bwh_createstaff'
                TableField = 'bwh_createstaff'
              end
              item
                DatasetField = 'bwh_createdate'
                TableField = 'bwh_createdate'
              end
              item
                DatasetField = 'bwh_modifystaff'
                TableField = 'bwh_modifystaff'
              end
              item
                DatasetField = 'bwh_modifydate'
                TableField = 'bwh_modifydate'
              end
              item
                DatasetField = 'bwh_oid'
                TableField = 'bwh_oid'
              end
              item
                DatasetField = 'bwh_oiid'
                TableField = 'bwh_oiid'
              end
              item
                DatasetField = 'bwh_osimpname'
                TableField = 'bwh_osimpname'
              end>
          end>
        Name = 'b_warehouse'
        Fields = <
          item
            Name = 'bwh_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bwh_name'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bwh_address'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bwh_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bwh_tel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bwh_fax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bwh_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bwh_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bwh_createdate'
            DataType = datDateTime
          end
          item
            Name = 'bwh_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bwh_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'bwh_oid'
            DataType = datGuid
          end
          item
            Name = 'bwh_oiid'
            DataType = datInteger
          end
          item
            Name = 'bwh_osimpname'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousecheck'
            SQL = 
              'SELECT '#10'    dwhc_id, dwhc_no, dwhc_sdate, dwhc_cldate, dwhc_whid' +
              ', '#10'    dwhc_whname, dwhc_whstaff, dwhc_staff, dwhc_createstaff, ' +
              #10'    dwhc_cratedate, dwhc_checkrequeststaff, dwhc_checkrequestid' +
              ', '#10'    dwhc_modifystaff, dwhc_modifydate, dwhc_checkstaff, '#10'    ' +
              'dwhc_checkdate, dwhc_remark, dwhc_state'#10'  FROM'#10'    d_warehousech' +
              'eck'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwhc_id'
                TableField = 'dwhc_id'
              end
              item
                DatasetField = 'dwhc_no'
                TableField = 'dwhc_no'
              end
              item
                DatasetField = 'dwhc_sdate'
                TableField = 'dwhc_sdate'
              end
              item
                DatasetField = 'dwhc_cldate'
                TableField = 'dwhc_cldate'
              end
              item
                DatasetField = 'dwhc_whid'
                TableField = 'dwhc_whid'
              end
              item
                DatasetField = 'dwhc_whname'
                TableField = 'dwhc_whname'
              end
              item
                DatasetField = 'dwhc_whstaff'
                TableField = 'dwhc_whstaff'
              end
              item
                DatasetField = 'dwhc_staff'
                TableField = 'dwhc_staff'
              end
              item
                DatasetField = 'dwhc_createstaff'
                TableField = 'dwhc_createstaff'
              end
              item
                DatasetField = 'dwhc_cratedate'
                TableField = 'dwhc_cratedate'
              end
              item
                DatasetField = 'dwhc_checkrequeststaff'
                TableField = 'dwhc_checkrequeststaff'
              end
              item
                DatasetField = 'dwhc_checkrequestid'
                TableField = 'dwhc_checkrequestid'
              end
              item
                DatasetField = 'dwhc_modifystaff'
                TableField = 'dwhc_modifystaff'
              end
              item
                DatasetField = 'dwhc_modifydate'
                TableField = 'dwhc_modifydate'
              end
              item
                DatasetField = 'dwhc_checkstaff'
                TableField = 'dwhc_checkstaff'
              end
              item
                DatasetField = 'dwhc_checkdate'
                TableField = 'dwhc_checkdate'
              end
              item
                DatasetField = 'dwhc_remark'
                TableField = 'dwhc_remark'
              end
              item
                DatasetField = 'dwhc_state'
                TableField = 'dwhc_state'
              end>
          end>
        Name = 'd_warehousecheck'
        Fields = <
          item
            Name = 'dwhc_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwhc_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhc_sdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhc_cldate'
            DataType = datDateTime
          end
          item
            Name = 'dwhc_whid'
            DataType = datGuid
          end
          item
            Name = 'dwhc_whname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhc_whstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhc_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhc_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhc_cratedate'
            DataType = datDateTime
          end
          item
            Name = 'dwhc_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhc_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dwhc_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhc_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dwhc_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhc_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhc_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwhc_state'
            DataType = datString
            Size = 20
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousecheckitem'
            SQL = 
              'SELECT '#10'    dwci_whcid, dwci_serial, dwci_productid, dwci_produc' +
              'tno, '#10'    dwci_productrealno, dwci_productname, dwci_productcnna' +
              'me, '#10'    dwci_productenname, dwci_productdesc, dwci_unit, dwci_s' +
              'qty, '#10'    dwci_aqty, dwci_qtylose, dwci_remark, dwci_whid, dwci_' +
              'sellmcode, '#10'    dwci_sellrate, dwci_sellprice, dwci_sellamt, dwc' +
              'i_sellamtrmb'#10'  FROM'#10'    d_warehousecheckitem'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwci_whcid'
                TableField = 'dwci_whcid'
              end
              item
                DatasetField = 'dwci_serial'
                TableField = 'dwci_serial'
              end
              item
                DatasetField = 'dwci_productid'
                TableField = 'dwci_productid'
              end
              item
                DatasetField = 'dwci_productno'
                TableField = 'dwci_productno'
              end
              item
                DatasetField = 'dwci_productrealno'
                TableField = 'dwci_productrealno'
              end
              item
                DatasetField = 'dwci_productname'
                TableField = 'dwci_productname'
              end
              item
                DatasetField = 'dwci_productcnname'
                TableField = 'dwci_productcnname'
              end
              item
                DatasetField = 'dwci_productenname'
                TableField = 'dwci_productenname'
              end
              item
                DatasetField = 'dwci_productdesc'
                TableField = 'dwci_productdesc'
              end
              item
                DatasetField = 'dwci_unit'
                TableField = 'dwci_unit'
              end
              item
                DatasetField = 'dwci_sqty'
                TableField = 'dwci_sqty'
              end
              item
                DatasetField = 'dwci_aqty'
                TableField = 'dwci_aqty'
              end
              item
                DatasetField = 'dwci_qtylose'
                TableField = 'dwci_qtylose'
              end
              item
                DatasetField = 'dwci_remark'
                TableField = 'dwci_remark'
              end
              item
                DatasetField = 'dwci_whid'
                TableField = 'dwci_whid'
              end
              item
                DatasetField = 'dwci_sellmcode'
                TableField = 'dwci_sellmcode'
              end
              item
                DatasetField = 'dwci_sellrate'
                TableField = 'dwci_sellrate'
              end
              item
                DatasetField = 'dwci_sellprice'
                TableField = 'dwci_sellprice'
              end
              item
                DatasetField = 'dwci_sellamt'
                TableField = 'dwci_sellamt'
              end
              item
                DatasetField = 'dwci_sellamtrmb'
                TableField = 'dwci_sellamtrmb'
              end>
          end>
        Name = 'd_warehousecheckitem'
        Fields = <
          item
            Name = 'dwci_whcid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwci_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwci_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwci_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwci_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwci_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwci_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwci_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwci_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwci_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwci_sqty'
            DataType = datFloat
          end
          item
            Name = 'dwci_aqty'
            DataType = datFloat
          end
          item
            Name = 'dwci_qtylose'
            DataType = datFloat
          end
          item
            Name = 'dwci_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwci_whid'
            DataType = datGuid
          end
          item
            Name = 'dwci_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwci_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwci_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwci_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwci_sellamtrmb'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouseitem'
            SQL = 
              'SELECT '#10'    dwi_whid, dwi_serial, dwi_productid, dwi_productno, ' +
              #10'    dwi_productrealno, dwi_productname, dwi_productcnname, '#10'   ' +
              ' dwi_productenname, dwi_productdesc, dwi_sellprice, '#10'    dwi_sel' +
              'lmcode, dwi_sellrate, dwi_qty, dwi_unit, dwi_sellamt, '#10'    dwi_s' +
              'ellamtrmb, dwi_gw, dwi_gwamt, dwi_remark'#10'  FROM'#10'    d_warehousei' +
              'tem'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwi_whid'
                TableField = 'dwi_whid'
              end
              item
                DatasetField = 'dwi_serial'
                TableField = 'dwi_serial'
              end
              item
                DatasetField = 'dwi_productid'
                TableField = 'dwi_productid'
              end
              item
                DatasetField = 'dwi_productno'
                TableField = 'dwi_productno'
              end
              item
                DatasetField = 'dwi_productrealno'
                TableField = 'dwi_productrealno'
              end
              item
                DatasetField = 'dwi_productname'
                TableField = 'dwi_productname'
              end
              item
                DatasetField = 'dwi_productcnname'
                TableField = 'dwi_productcnname'
              end
              item
                DatasetField = 'dwi_productenname'
                TableField = 'dwi_productenname'
              end
              item
                DatasetField = 'dwi_productdesc'
                TableField = 'dwi_productdesc'
              end
              item
                DatasetField = 'dwi_sellprice'
                TableField = 'dwi_sellprice'
              end
              item
                DatasetField = 'dwi_sellmcode'
                TableField = 'dwi_sellmcode'
              end
              item
                DatasetField = 'dwi_sellrate'
                TableField = 'dwi_sellrate'
              end
              item
                DatasetField = 'dwi_qty'
                TableField = 'dwi_qty'
              end
              item
                DatasetField = 'dwi_unit'
                TableField = 'dwi_unit'
              end
              item
                DatasetField = 'dwi_sellamt'
                TableField = 'dwi_sellamt'
              end
              item
                DatasetField = 'dwi_sellamtrmb'
                TableField = 'dwi_sellamtrmb'
              end
              item
                DatasetField = 'dwi_gw'
                TableField = 'dwi_gw'
              end
              item
                DatasetField = 'dwi_gwamt'
                TableField = 'dwi_gwamt'
              end
              item
                DatasetField = 'dwi_remark'
                TableField = 'dwi_remark'
              end>
          end>
        Name = 'd_warehouseitem'
        Fields = <
          item
            Name = 'dwi_whid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwi_serial'
            DataType = datAutoInc
            GeneratorName = 'd_warehouseitem'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwi_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwi_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwi_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwi_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwi_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwi_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwi_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwi_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwi_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwi_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwi_qty'
            DataType = datFloat
          end
          item
            Name = 'dwi_unit'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwi_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwi_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwi_gw'
            DataType = datFloat
          end
          item
            Name = 'dwi_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwi_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouseoutitem'
            SQL = 
              'SELECT '#10'    dwoi_whoid, dwoi_serial, dwoi_productid, dwoi_produc' +
              'tno, '#10'    dwoi_productrealno, dwoi_productname, dwoi_productcnna' +
              'me, '#10'    dwoi_productenname, dwoi_productdesc, dwoi_sellmcode, '#10 +
              '    dwoi_sellrate, dwoi_sellprice, dwoi_sellamt, dwoi_sellamtrmb' +
              ', '#10'    dwoi_qty, dwoi_unit, dwoi_gw, dwoi_gwamt, dwoi_remark, '#10' ' +
              '   dwoi_whid, dwoi_currqty,dwoi_notoutqty,dwoi_id,dwoi_piqty'#10'  F' +
              'ROM'#10'    d_warehouseoutitem'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwoi_whoid'
                TableField = 'dwoi_whoid'
              end
              item
                DatasetField = 'dwoi_serial'
                TableField = 'dwoi_serial'
              end
              item
                DatasetField = 'dwoi_productid'
                TableField = 'dwoi_productid'
              end
              item
                DatasetField = 'dwoi_productno'
                TableField = 'dwoi_productno'
              end
              item
                DatasetField = 'dwoi_productrealno'
                TableField = 'dwoi_productrealno'
              end
              item
                DatasetField = 'dwoi_productname'
                TableField = 'dwoi_productname'
              end
              item
                DatasetField = 'dwoi_productcnname'
                TableField = 'dwoi_productcnname'
              end
              item
                DatasetField = 'dwoi_productenname'
                TableField = 'dwoi_productenname'
              end
              item
                DatasetField = 'dwoi_productdesc'
                TableField = 'dwoi_productdesc'
              end
              item
                DatasetField = 'dwoi_sellmcode'
                TableField = 'dwoi_sellmcode'
              end
              item
                DatasetField = 'dwoi_sellrate'
                TableField = 'dwoi_sellrate'
              end
              item
                DatasetField = 'dwoi_sellprice'
                TableField = 'dwoi_sellprice'
              end
              item
                DatasetField = 'dwoi_sellamt'
                TableField = 'dwoi_sellamt'
              end
              item
                DatasetField = 'dwoi_sellamtrmb'
                TableField = 'dwoi_sellamtrmb'
              end
              item
                DatasetField = 'dwoi_qty'
                TableField = 'dwoi_qty'
              end
              item
                DatasetField = 'dwoi_unit'
                TableField = 'dwoi_unit'
              end
              item
                DatasetField = 'dwoi_gw'
                TableField = 'dwoi_gw'
              end
              item
                DatasetField = 'dwoi_gwamt'
                TableField = 'dwoi_gwamt'
              end
              item
                DatasetField = 'dwoi_remark'
                TableField = 'dwoi_remark'
              end
              item
                DatasetField = 'dwoi_whid'
                TableField = 'dwoi_whid'
              end
              item
                DatasetField = 'dwoi_currqty'
                TableField = 'dwoi_currqty'
              end
              item
                DatasetField = 'dwoi_notoutqty'
                TableField = 'dwoi_notoutqty'
              end
              item
                DatasetField = 'dwoi_id'
                TableField = 'dwoi_id'
              end
              item
                DatasetField = 'dwoi_piqty'
                TableField = 'dwoi_piqty'
              end>
          end>
        Name = 'd_warehouseoutitem'
        Fields = <
          item
            Name = 'dwoi_whoid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwoi_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwoi_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwoi_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwoi_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwoi_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwoi_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwoi_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwoi_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwoi_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwoi_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwoi_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwoi_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwoi_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwoi_qty'
            DataType = datFloat
          end
          item
            Name = 'dwoi_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwoi_gw'
            DataType = datFloat
          end
          item
            Name = 'dwoi_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwoi_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dwoi_whid'
            DataType = datGuid
          end
          item
            Name = 'dwoi_currqty'
            DataType = datFloat
          end
          item
            Name = 'dwoi_notoutqty'
            DataType = datFloat
          end
          item
            Name = 'dwoi_id'
            DataType = datInteger
          end
          item
            Name = 'dwoi_piqty'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousesnapshot'
            SQL = 
              'SELECT '#10'    dwhs_id, dwhs_whid, dwhs_year, dwhs_month, dwhs_date' +
              #10'  FROM'#10'    d_warehousesnapshot'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwhs_id'
                TableField = 'dwhs_id'
              end
              item
                DatasetField = 'dwhs_whid'
                TableField = 'dwhs_whid'
              end
              item
                DatasetField = 'dwhs_year'
                TableField = 'dwhs_year'
              end
              item
                DatasetField = 'dwhs_month'
                TableField = 'dwhs_month'
              end
              item
                DatasetField = 'dwhs_date'
                TableField = 'dwhs_date'
              end>
          end>
        Name = 'd_warehousesnapshot'
        Fields = <
          item
            Name = 'dwhs_id'
            DataType = datAutoInc
            GeneratorName = 'd_warehousesnapshot'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwhs_whid'
            DataType = datGuid
          end
          item
            Name = 'dwhs_year'
            DataType = datInteger
          end
          item
            Name = 'dwhs_month'
            DataType = datInteger
          end
          item
            Name = 'dwhs_date'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousestartitem'
            SQL = 
              'SELECT '#10'    dwsi_pid, dwsi_whid, dwsi_serial, dwsi_productid, dw' +
              'si_productno, '#10'    dwsi_productrealno, dwsi_productname, dwsi_se' +
              'llprice, '#10'    dwsi_qty, dwsi_amt, dwsi_year, dwsi_month'#10'  FROM'#10' ' +
              '   d_warehousestartitem'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwsi_pid'
                TableField = 'dwsi_pid'
              end
              item
                DatasetField = 'dwsi_whid'
                TableField = 'dwsi_whid'
              end
              item
                DatasetField = 'dwsi_serial'
                TableField = 'dwsi_serial'
              end
              item
                DatasetField = 'dwsi_productid'
                TableField = 'dwsi_productid'
              end
              item
                DatasetField = 'dwsi_productno'
                TableField = 'dwsi_productno'
              end
              item
                DatasetField = 'dwsi_productrealno'
                TableField = 'dwsi_productrealno'
              end
              item
                DatasetField = 'dwsi_productname'
                TableField = 'dwsi_productname'
              end
              item
                DatasetField = 'dwsi_sellprice'
                TableField = 'dwsi_sellprice'
              end
              item
                DatasetField = 'dwsi_qty'
                TableField = 'dwsi_qty'
              end
              item
                DatasetField = 'dwsi_amt'
                TableField = 'dwsi_amt'
              end
              item
                DatasetField = 'dwsi_year'
                TableField = 'dwsi_year'
              end
              item
                DatasetField = 'dwsi_month'
                TableField = 'dwsi_month'
              end>
          end>
        Name = 'd_warehousestartitem'
        Fields = <
          item
            Name = 'dwsi_pid'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwsi_whid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwsi_serial'
            DataType = datAutoInc
            GeneratorName = 'd_warehousestartitem'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwsi_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwsi_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwsi_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwsi_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwsi_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwsi_qty'
            DataType = datFloat
          end
          item
            Name = 'dwsi_amt'
            DataType = datFloat
          end
          item
            Name = 'dwsi_year'
            DataType = datInteger
          end
          item
            Name = 'dwsi_month'
            DataType = datInteger
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_accountreceivable'
            SQL = 
              'SELECT '#10'    dar_id, dar_no, dar_date, dar_type, dar_type2, dar_m' +
              'atchtype, '#10'    dar_matchid, dar_matchname, dar_piid, dar_pino, d' +
              'ar_payment, '#10'    dar_staff, dar_staffid, dar_state, dar_mcode, d' +
              'ar_rate, '#10'    dar_rateanalyse, dar_amt, dar_balance, dar_remark,' +
              ' '#10'    dar_paydate, dar_oid, dar_osimpname, dar_bankid, dar_bankn' +
              'ame, '#10'    dar_billtype, dar_billid, dar_billno, dar_createstaff,' +
              ' '#10'    dar_createdate, dar_modifystaff, dar_modifydate, dar_useda' +
              'mt, '#10'    dar_billdate, dar_pistaff, dar_pidepartment, dar_projec' +
              'tid, dar_projectno'#10'  FROM'#10'    d_accountreceivable'#10'  WHERE {Where' +
              '}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dar_id'
                TableField = 'dar_id'
              end
              item
                DatasetField = 'dar_no'
                TableField = 'dar_no'
              end
              item
                DatasetField = 'dar_date'
                TableField = 'dar_date'
              end
              item
                DatasetField = 'dar_type'
                TableField = 'dar_type'
              end
              item
                DatasetField = 'dar_type2'
                TableField = 'dar_type2'
              end
              item
                DatasetField = 'dar_matchtype'
                TableField = 'dar_matchtype'
              end
              item
                DatasetField = 'dar_matchid'
                TableField = 'dar_matchid'
              end
              item
                DatasetField = 'dar_matchname'
                TableField = 'dar_matchname'
              end
              item
                DatasetField = 'dar_piid'
                TableField = 'dar_piid'
              end
              item
                DatasetField = 'dar_pino'
                TableField = 'dar_pino'
              end
              item
                DatasetField = 'dar_payment'
                TableField = 'dar_payment'
              end
              item
                DatasetField = 'dar_staff'
                TableField = 'dar_staff'
              end
              item
                DatasetField = 'dar_staffid'
                TableField = 'dar_staffid'
              end
              item
                DatasetField = 'dar_state'
                TableField = 'dar_state'
              end
              item
                DatasetField = 'dar_mcode'
                TableField = 'dar_mcode'
              end
              item
                DatasetField = 'dar_rate'
                TableField = 'dar_rate'
              end
              item
                DatasetField = 'dar_rateanalyse'
                TableField = 'dar_rateanalyse'
              end
              item
                DatasetField = 'dar_amt'
                TableField = 'dar_amt'
              end
              item
                DatasetField = 'dar_balance'
                TableField = 'dar_balance'
              end
              item
                DatasetField = 'dar_remark'
                TableField = 'dar_remark'
              end
              item
                DatasetField = 'dar_paydate'
                TableField = 'dar_paydate'
              end
              item
                DatasetField = 'dar_oid'
                TableField = 'dar_oid'
              end
              item
                DatasetField = 'dar_osimpname'
                TableField = 'dar_osimpname'
              end
              item
                DatasetField = 'dar_bankid'
                TableField = 'dar_bankid'
              end
              item
                DatasetField = 'dar_bankname'
                TableField = 'dar_bankname'
              end
              item
                DatasetField = 'dar_billtype'
                TableField = 'dar_billtype'
              end
              item
                DatasetField = 'dar_billid'
                TableField = 'dar_billid'
              end
              item
                DatasetField = 'dar_billno'
                TableField = 'dar_billno'
              end
              item
                DatasetField = 'dar_createstaff'
                TableField = 'dar_createstaff'
              end
              item
                DatasetField = 'dar_createdate'
                TableField = 'dar_createdate'
              end
              item
                DatasetField = 'dar_modifystaff'
                TableField = 'dar_modifystaff'
              end
              item
                DatasetField = 'dar_modifydate'
                TableField = 'dar_modifydate'
              end
              item
                DatasetField = 'dar_usedamt'
                TableField = 'dar_usedamt'
              end
              item
                DatasetField = 'dar_billdate'
                TableField = 'dar_billdate'
              end
              item
                DatasetField = 'dar_pistaff'
                TableField = 'dar_pistaff'
              end
              item
                DatasetField = 'dar_pidepartment'
                TableField = 'dar_pidepartment'
              end
              item
                DatasetField = 'dar_projectid'
                TableField = 'dar_projectid'
              end
              item
                DatasetField = 'dar_projectno'
                TableField = 'dar_projectno'
              end>
          end>
        Name = 'd_accountreceivable'
        Fields = <
          item
            Name = 'dar_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dar_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_date'
            DataType = datDateTime
          end
          item
            Name = 'dar_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_type2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_matchtype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_matchid'
            DataType = datGuid
          end
          item
            Name = 'dar_matchname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_piid'
            DataType = datGuid
          end
          item
            Name = 'dar_pino'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_payment'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dar_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_staffid'
            DataType = datGuid
          end
          item
            Name = 'dar_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dar_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dar_rate'
            DataType = datFloat
          end
          item
            Name = 'dar_rateanalyse'
            DataType = datFloat
          end
          item
            Name = 'dar_amt'
            DataType = datFloat
          end
          item
            Name = 'dar_balance'
            DataType = datFloat
          end
          item
            Name = 'dar_remark'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dar_paydate'
            DataType = datDateTime
          end
          item
            Name = 'dar_oid'
            DataType = datGuid
          end
          item
            Name = 'dar_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_bankid'
            DataType = datGuid
          end
          item
            Name = 'dar_bankname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dar_billtype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_billid'
            DataType = datGuid
          end
          item
            Name = 'dar_billno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dar_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dar_usedamt'
            DataType = datFloat
          end
          item
            Name = 'dar_billdate'
            DataType = datDateTime
          end
          item
            Name = 'dar_pistaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_pidepartment'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dar_projectid'
            DataType = datGuid
          end
          item
            Name = 'dar_projectno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_accountpayable'
            SQL = 
              'SELECT '#10'    dap_id, dap_no, dap_date, dap_type, dap_type2, dap_m' +
              'atchtype, '#10'    dap_matchid, dap_matchname, dap_pino, dap_stockno' +
              ', '#10'    dap_payment, dap_staff, dap_staffid, dap_mcode, dap_rate,' +
              ' '#10'    dap_rateanalyse, dap_amt, dap_balance, dap_state, dap_rema' +
              'rk, '#10'    dap_paydate, dap_oid, dap_osimpname, dap_bankid, dap_ba' +
              'nkname,'#10'    dap_bankaccount, dap_billtype, dap_billid, dap_billn' +
              'o, '#10'    dap_createstaff, dap_createdate, dap_modifystaff, dap_mo' +
              'difydate, '#10'    dap_usedamt, dap_billdate, dap_requestbalance,dap' +
              '_oiid,dap_projectno,dap_projectid'#10'  FROM'#10'    d_accountpayable'#10'  ' +
              'WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dap_id'
                TableField = 'dap_id'
              end
              item
                DatasetField = 'dap_no'
                TableField = 'dap_no'
              end
              item
                DatasetField = 'dap_date'
                TableField = 'dap_date'
              end
              item
                DatasetField = 'dap_type'
                TableField = 'dap_type'
              end
              item
                DatasetField = 'dap_type2'
                TableField = 'dap_type2'
              end
              item
                DatasetField = 'dap_matchtype'
                TableField = 'dap_matchtype'
              end
              item
                DatasetField = 'dap_matchid'
                TableField = 'dap_matchid'
              end
              item
                DatasetField = 'dap_matchname'
                TableField = 'dap_matchname'
              end
              item
                DatasetField = 'dap_pino'
                TableField = 'dap_pino'
              end
              item
                DatasetField = 'dap_stockno'
                TableField = 'dap_stockno'
              end
              item
                DatasetField = 'dap_payment'
                TableField = 'dap_payment'
              end
              item
                DatasetField = 'dap_staff'
                TableField = 'dap_staff'
              end
              item
                DatasetField = 'dap_staffid'
                TableField = 'dap_staffid'
              end
              item
                DatasetField = 'dap_mcode'
                TableField = 'dap_mcode'
              end
              item
                DatasetField = 'dap_rate'
                TableField = 'dap_rate'
              end
              item
                DatasetField = 'dap_rateanalyse'
                TableField = 'dap_rateanalyse'
              end
              item
                DatasetField = 'dap_amt'
                TableField = 'dap_amt'
              end
              item
                DatasetField = 'dap_balance'
                TableField = 'dap_balance'
              end
              item
                DatasetField = 'dap_state'
                TableField = 'dap_state'
              end
              item
                DatasetField = 'dap_remark'
                TableField = 'dap_remark'
              end
              item
                DatasetField = 'dap_paydate'
                TableField = 'dap_paydate'
              end
              item
                DatasetField = 'dap_oid'
                TableField = 'dap_oid'
              end
              item
                DatasetField = 'dap_bankid'
                TableField = 'dap_bankid'
              end
              item
                DatasetField = 'dap_bankname'
                TableField = 'dap_bankname'
              end
              item
                DatasetField = 'dap_bankaccount'
                TableField = 'dap_bankaccount'
              end
              item
                DatasetField = 'dap_billtype'
                TableField = 'dap_billtype'
              end
              item
                DatasetField = 'dap_billid'
                TableField = 'dap_billid'
              end
              item
                DatasetField = 'dap_billno'
                TableField = 'dap_billno'
              end
              item
                DatasetField = 'dap_createstaff'
                TableField = 'dap_createstaff'
              end
              item
                DatasetField = 'dap_createdate'
                TableField = 'dap_createdate'
              end
              item
                DatasetField = 'dap_modifystaff'
                TableField = 'dap_modifystaff'
              end
              item
                DatasetField = 'dap_modifydate'
                TableField = 'dap_modifydate'
              end
              item
                DatasetField = 'dap_usedamt'
                TableField = 'dap_usedamt'
              end
              item
                DatasetField = 'dap_billdate'
                TableField = 'dap_billdate'
              end
              item
                DatasetField = 'dap_requestbalance'
                TableField = 'dap_requestbalance'
              end
              item
                DatasetField = 'dap_osimpname'
                TableField = 'dap_osimpname'
              end
              item
                DatasetField = 'dap_oiid'
                TableField = 'dap_oiid'
              end
              item
                DatasetField = 'dap_projectno'
                TableField = 'dap_projectno'
              end
              item
                DatasetField = 'dap_projectid'
                TableField = 'dap_projectid'
              end>
          end>
        Name = 'd_accountpayable'
        Fields = <
          item
            Name = 'dap_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dap_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_date'
            DataType = datDateTime
          end
          item
            Name = 'dap_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_type2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_matchtype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_matchid'
            DataType = datGuid
          end
          item
            Name = 'dap_matchname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_pino'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_stockno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_payment'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dap_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_staffid'
            DataType = datGuid
          end
          item
            Name = 'dap_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dap_rate'
            DataType = datFloat
          end
          item
            Name = 'dap_rateanalyse'
            DataType = datFloat
          end
          item
            Name = 'dap_amt'
            DataType = datFloat
          end
          item
            Name = 'dap_balance'
            DataType = datFloat
          end
          item
            Name = 'dap_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dap_remark'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dap_paydate'
            DataType = datDateTime
          end
          item
            Name = 'dap_oid'
            DataType = datGuid
          end
          item
            Name = 'dap_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_bankid'
            DataType = datGuid
          end
          item
            Name = 'dap_bankname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dap_bankaccount'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_billtype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_billid'
            DataType = datGuid
          end
          item
            Name = 'dap_billno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dap_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dap_usedamt'
            DataType = datFloat
          end
          item
            Name = 'dap_billdate'
            DataType = datDateTime
          end
          item
            Name = 'dap_requestbalance'
            DataType = datFloat
          end
          item
            Name = 'dap_oiid'
            DataType = datInteger
          end
          item
            Name = 'dap_projectno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dap_projectid'
            DataType = datGuid
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_paybalance'
            SQL = 
              'SELECT '#10'    dpb_id, dpb_no, dpb_date, dpb_type, dpb_preaccountid' +
              ', '#10'    dpb_preaccountno, dpb_matchtype, dpb_matchid, dpb_matchno' +
              ', '#10'    dpb_matchname, dpb_staff, dpb_amt, dpb_mcode, dpb_rate, '#10 +
              '    dpb_remark, dpb_createstaff, dpb_createdate, dpb_modifystaff' +
              ', '#10'    dpb_modifydate, dpb_bankno, dpb_billno, dpb_oid, dpb_osim' +
              'pname'#10'  FROM'#10'    d_paybalance'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpb_id'
                TableField = 'dpb_id'
              end
              item
                DatasetField = 'dpb_no'
                TableField = 'dpb_no'
              end
              item
                DatasetField = 'dpb_date'
                TableField = 'dpb_date'
              end
              item
                DatasetField = 'dpb_type'
                TableField = 'dpb_type'
              end
              item
                DatasetField = 'dpb_preaccountid'
                TableField = 'dpb_preaccountid'
              end
              item
                DatasetField = 'dpb_preaccountno'
                TableField = 'dpb_preaccountno'
              end
              item
                DatasetField = 'dpb_matchtype'
                TableField = 'dpb_matchtype'
              end
              item
                DatasetField = 'dpb_matchid'
                TableField = 'dpb_matchid'
              end
              item
                DatasetField = 'dpb_matchno'
                TableField = 'dpb_matchno'
              end
              item
                DatasetField = 'dpb_matchname'
                TableField = 'dpb_matchname'
              end
              item
                DatasetField = 'dpb_staff'
                TableField = 'dpb_staff'
              end
              item
                DatasetField = 'dpb_amt'
                TableField = 'dpb_amt'
              end
              item
                DatasetField = 'dpb_mcode'
                TableField = 'dpb_mcode'
              end
              item
                DatasetField = 'dpb_rate'
                TableField = 'dpb_rate'
              end
              item
                DatasetField = 'dpb_remark'
                TableField = 'dpb_remark'
              end
              item
                DatasetField = 'dpb_createstaff'
                TableField = 'dpb_createstaff'
              end
              item
                DatasetField = 'dpb_createdate'
                TableField = 'dpb_createdate'
              end
              item
                DatasetField = 'dpb_modifystaff'
                TableField = 'dpb_modifystaff'
              end
              item
                DatasetField = 'dpb_modifydate'
                TableField = 'dpb_modifydate'
              end
              item
                DatasetField = 'dpb_bankno'
                TableField = 'dpb_bankno'
              end
              item
                DatasetField = 'dpb_billno'
                TableField = 'dpb_billno'
              end
              item
                DatasetField = 'dpb_oid'
                TableField = 'dpb_oid'
              end
              item
                DatasetField = 'dpb_osimpname'
                TableField = 'dpb_osimpname'
              end>
          end>
        Name = 'd_paybalance'
        Fields = <
          item
            Name = 'dpb_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpb_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpb_date'
            DataType = datDateTime
          end
          item
            Name = 'dpb_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpb_preaccountid'
            DataType = datGuid
          end
          item
            Name = 'dpb_preaccountno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpb_matchtype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpb_matchid'
            DataType = datGuid
          end
          item
            Name = 'dpb_matchno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dpb_matchname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpb_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpb_amt'
            DataType = datFloat
          end
          item
            Name = 'dpb_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dpb_rate'
            DataType = datFloat
          end
          item
            Name = 'dpb_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpb_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpb_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dpb_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpb_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dpb_bankno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpb_billno'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dpb_oid'
            DataType = datGuid
          end
          item
            Name = 'dpb_osimpname'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_paymentrequest'
            SQL = 
              'SELECT '#10'    dpr_id, dpr_no, dpr_oid, dpr_osimpname, dpr_oiid, dp' +
              'r_date, '#10'    dpr_payeematch, dpr_payeeid, dpr_payee, dpr_applied' +
              'by, '#10'    dpr_appliedbyid, dpr_appliedbyiid, dpr_department, '#10'   ' +
              ' dpr_approvedby1, dpr_approvedby2, dpr_checkedby, dpr_paypurpose' +
              ', '#10'    dpr_amt, dpr_mcode, dpr_rate, dpr_remark, dpr_createstaff' +
              ', '#10'    dpr_createdate, dpr_modifystaff, dpr_modifydate, dpr_stat' +
              'e,dpr_estidate,dpr_checkrequeststaff,dpr_checkrequestid,dpr_chec' +
              'kdate'#10'  FROM'#10'    d_paymentrequest'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpr_id'
                TableField = 'dpr_id'
              end
              item
                DatasetField = 'dpr_no'
                TableField = 'dpr_no'
              end
              item
                DatasetField = 'dpr_oid'
                TableField = 'dpr_oid'
              end
              item
                DatasetField = 'dpr_osimpname'
                TableField = 'dpr_osimpname'
              end
              item
                DatasetField = 'dpr_oiid'
                TableField = 'dpr_oiid'
              end
              item
                DatasetField = 'dpr_date'
                TableField = 'dpr_date'
              end
              item
                DatasetField = 'dpr_payeematch'
                TableField = 'dpr_payeematch'
              end
              item
                DatasetField = 'dpr_payeeid'
                TableField = 'dpr_payeeid'
              end
              item
                DatasetField = 'dpr_payee'
                TableField = 'dpr_payee'
              end
              item
                DatasetField = 'dpr_appliedby'
                TableField = 'dpr_appliedby'
              end
              item
                DatasetField = 'dpr_appliedbyid'
                TableField = 'dpr_appliedbyid'
              end
              item
                DatasetField = 'dpr_appliedbyiid'
                TableField = 'dpr_appliedbyiid'
              end
              item
                DatasetField = 'dpr_department'
                TableField = 'dpr_department'
              end
              item
                DatasetField = 'dpr_approvedby1'
                TableField = 'dpr_approvedby1'
              end
              item
                DatasetField = 'dpr_approvedby2'
                TableField = 'dpr_approvedby2'
              end
              item
                DatasetField = 'dpr_checkedby'
                TableField = 'dpr_checkedby'
              end
              item
                DatasetField = 'dpr_paypurpose'
                TableField = 'dpr_paypurpose'
              end
              item
                DatasetField = 'dpr_amt'
                TableField = 'dpr_amt'
              end
              item
                DatasetField = 'dpr_mcode'
                TableField = 'dpr_mcode'
              end
              item
                DatasetField = 'dpr_rate'
                TableField = 'dpr_rate'
              end
              item
                DatasetField = 'dpr_remark'
                TableField = 'dpr_remark'
              end
              item
                DatasetField = 'dpr_createstaff'
                TableField = 'dpr_createstaff'
              end
              item
                DatasetField = 'dpr_createdate'
                TableField = 'dpr_createdate'
              end
              item
                DatasetField = 'dpr_modifystaff'
                TableField = 'dpr_modifystaff'
              end
              item
                DatasetField = 'dpr_modifydate'
                TableField = 'dpr_modifydate'
              end
              item
                DatasetField = 'dpr_state'
                TableField = 'dpr_state'
              end
              item
                DatasetField = 'dpr_estidate'
                TableField = 'dpr_estidate'
              end
              item
                DatasetField = 'dpr_checkrequeststaff'
                TableField = 'dpr_checkrequeststaff'
              end
              item
                DatasetField = 'dpr_checkrequestid'
                TableField = 'dpr_checkrequestid'
              end
              item
                DatasetField = 'dpr_checkdate'
                TableField = 'dpr_checkdate'
              end>
          end>
        Name = 'd_paymentrequest'
        Fields = <
          item
            Name = 'dpr_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpr_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dpr_oid'
            DataType = datGuid
          end
          item
            Name = 'dpr_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_oiid'
            DataType = datInteger
          end
          item
            Name = 'dpr_date'
            DataType = datDateTime
          end
          item
            Name = 'dpr_payeematch'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_payeeid'
            DataType = datGuid
          end
          item
            Name = 'dpr_payee'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_appliedby'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_appliedbyid'
            DataType = datGuid
          end
          item
            Name = 'dpr_appliedbyiid'
            DataType = datInteger
          end
          item
            Name = 'dpr_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_approvedby1'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_approvedby2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_checkedby'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_paypurpose'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dpr_amt'
            DataType = datFloat
          end
          item
            Name = 'dpr_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dpr_rate'
            DataType = datFloat
          end
          item
            Name = 'dpr_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dpr_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dpr_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dpr_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_estidate'
            DataType = datDateTime
          end
          item
            Name = 'dpr_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpr_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dpr_checkdate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_paymentrequestitem'
            SQL = 
              'SELECT '#10'    dpri_pid, dpri_serial, dpri_accountid, dpri_accountn' +
              'o, '#10'    dpri_type2, dpri_amt, dpri_accountamt, dpri_balance, '#10'  ' +
              '  dpri_balance2, dpri_usedamt, dpri_remark, dpri_canusedamt'#10'  FR' +
              'OM'#10'    d_paymentrequestitem'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpri_pid'
                TableField = 'dpri_pid'
              end
              item
                DatasetField = 'dpri_serial'
                TableField = 'dpri_serial'
              end
              item
                DatasetField = 'dpri_accountid'
                TableField = 'dpri_accountid'
              end
              item
                DatasetField = 'dpri_accountno'
                TableField = 'dpri_accountno'
              end
              item
                DatasetField = 'dpri_type2'
                TableField = 'dpri_type2'
              end
              item
                DatasetField = 'dpri_amt'
                TableField = 'dpri_amt'
              end
              item
                DatasetField = 'dpri_accountamt'
                TableField = 'dpri_accountamt'
              end
              item
                DatasetField = 'dpri_balance'
                TableField = 'dpri_balance'
              end
              item
                DatasetField = 'dpri_balance2'
                TableField = 'dpri_balance2'
              end
              item
                DatasetField = 'dpri_usedamt'
                TableField = 'dpri_usedamt'
              end
              item
                DatasetField = 'dpri_remark'
                TableField = 'dpri_remark'
              end
              item
                DatasetField = 'dpri_canusedamt'
                TableField = 'dpri_canusedamt'
              end>
          end>
        Name = 'd_paymentrequestitem'
        Fields = <
          item
            Name = 'dpri_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpri_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpri_accountid'
            DataType = datGuid
          end
          item
            Name = 'dpri_accountno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpri_type2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpri_amt'
            DataType = datFloat
          end
          item
            Name = 'dpri_accountamt'
            DataType = datFloat
          end
          item
            Name = 'dpri_balance'
            DataType = datFloat
          end
          item
            Name = 'dpri_balance2'
            DataType = datFloat
          end
          item
            Name = 'dpri_usedamt'
            DataType = datFloat
          end
          item
            Name = 'dpri_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpri_canusedamt'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_receivebalance'
            SQL = 
              'SELECT '#10'    drb_id, drb_no, drb_date, drb_type, drb_preaccountid' +
              ', '#10'    drb_preaccountno, drb_matchtype, drb_matchid, drb_matchno' +
              ', '#10'    drb_matchname, drb_staff, drb_amt, drb_bankamt, drb_banke' +
              'xtrafee, '#10'    drb_mcode, drb_rate, drb_remark, drb_createstaff, ' +
              'drb_createdate, '#10'    drb_modifystaff, drb_modifydate, drb_billno' +
              ', drb_oid, '#10'    drb_osimpname, drb_bankno, drb_frominfo, drb_rea' +
              'lnos, '#10'    drb_claiminfo, drb_claimstate, drb_issuestaff, drb_is' +
              'suestaffid, '#10'    drb_claimstaff, drb_claimstaffid'#10'  FROM'#10'    d_r' +
              'eceivebalance'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'drb_id'
                TableField = 'drb_id'
              end
              item
                DatasetField = 'drb_no'
                TableField = 'drb_no'
              end
              item
                DatasetField = 'drb_date'
                TableField = 'drb_date'
              end
              item
                DatasetField = 'drb_type'
                TableField = 'drb_type'
              end
              item
                DatasetField = 'drb_preaccountid'
                TableField = 'drb_preaccountid'
              end
              item
                DatasetField = 'drb_preaccountno'
                TableField = 'drb_preaccountno'
              end
              item
                DatasetField = 'drb_matchtype'
                TableField = 'drb_matchtype'
              end
              item
                DatasetField = 'drb_matchid'
                TableField = 'drb_matchid'
              end
              item
                DatasetField = 'drb_matchno'
                TableField = 'drb_matchno'
              end
              item
                DatasetField = 'drb_matchname'
                TableField = 'drb_matchname'
              end
              item
                DatasetField = 'drb_staff'
                TableField = 'drb_staff'
              end
              item
                DatasetField = 'drb_amt'
                TableField = 'drb_amt'
              end
              item
                DatasetField = 'drb_bankamt'
                TableField = 'drb_bankamt'
              end
              item
                DatasetField = 'drb_bankextrafee'
                TableField = 'drb_bankextrafee'
              end
              item
                DatasetField = 'drb_mcode'
                TableField = 'drb_mcode'
              end
              item
                DatasetField = 'drb_rate'
                TableField = 'drb_rate'
              end
              item
                DatasetField = 'drb_remark'
                TableField = 'drb_remark'
              end
              item
                DatasetField = 'drb_createstaff'
                TableField = 'drb_createstaff'
              end
              item
                DatasetField = 'drb_createdate'
                TableField = 'drb_createdate'
              end
              item
                DatasetField = 'drb_modifystaff'
                TableField = 'drb_modifystaff'
              end
              item
                DatasetField = 'drb_modifydate'
                TableField = 'drb_modifydate'
              end
              item
                DatasetField = 'drb_billno'
                TableField = 'drb_billno'
              end
              item
                DatasetField = 'drb_oid'
                TableField = 'drb_oid'
              end
              item
                DatasetField = 'drb_osimpname'
                TableField = 'drb_osimpname'
              end
              item
                DatasetField = 'drb_bankno'
                TableField = 'drb_bankno'
              end
              item
                DatasetField = 'drb_frominfo'
                TableField = 'drb_frominfo'
              end
              item
                DatasetField = 'drb_realnos'
                TableField = 'drb_realnos'
              end
              item
                DatasetField = 'drb_claiminfo'
                TableField = 'drb_claiminfo'
              end
              item
                DatasetField = 'drb_claimstate'
                TableField = 'drb_claimstate'
              end
              item
                DatasetField = 'drb_issuestaff'
                TableField = 'drb_issuestaff'
              end
              item
                DatasetField = 'drb_issuestaffid'
                TableField = 'drb_issuestaffid'
              end
              item
                DatasetField = 'drb_claimstaff'
                TableField = 'drb_claimstaff'
              end
              item
                DatasetField = 'drb_claimstaffid'
                TableField = 'drb_claimstaffid'
              end>
          end>
        Name = 'd_receivebalance'
        Fields = <
          item
            Name = 'drb_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'drb_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_date'
            DataType = datDateTime
          end
          item
            Name = 'drb_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_preaccountid'
            DataType = datGuid
          end
          item
            Name = 'drb_preaccountno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_matchtype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_matchid'
            DataType = datGuid
          end
          item
            Name = 'drb_matchno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'drb_matchname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_amt'
            DataType = datFloat
          end
          item
            Name = 'drb_bankamt'
            DataType = datFloat
          end
          item
            Name = 'drb_bankextrafee'
            DataType = datFloat
          end
          item
            Name = 'drb_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'drb_rate'
            DataType = datFloat
          end
          item
            Name = 'drb_remark'
            DataType = datString
            Size = 100
          end
          item
            Name = 'drb_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_createdate'
            DataType = datDateTime
          end
          item
            Name = 'drb_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'drb_billno'
            DataType = datString
            Size = 200
          end
          item
            Name = 'drb_oid'
            DataType = datGuid
          end
          item
            Name = 'drb_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_bankno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_frominfo'
            DataType = datString
            Size = 500
          end
          item
            Name = 'drb_realnos'
            DataType = datString
            Size = 200
          end
          item
            Name = 'drb_claiminfo'
            DataType = datString
            Size = 500
          end
          item
            Name = 'drb_claimstate'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_issuestaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_issuestaffid'
            DataType = datGuid
          end
          item
            Name = 'drb_claimstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_claimstaffid'
            DataType = datGuid
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_receivebalanceitem'
            SQL = 
              'SELECT '#10'    drbi_pid, drbi_serial, drbi_accountid, drbi_accountn' +
              'o, '#10'    drbi_preaccountid, drbi_preaccountno, drbi_type, drbi_mc' +
              'ode, '#10'    drbi_rate, drbi_amt, drbi_bankcost, drbi_otherfee, '#10'  ' +
              '  drbi_balanceamt, drbi_remark, drbi_billid, drbi_billno'#10'  FROM'#10 +
              '    d_receivebalanceitem'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'drbi_pid'
                TableField = 'drbi_pid'
              end
              item
                DatasetField = 'drbi_serial'
                TableField = 'drbi_serial'
              end
              item
                DatasetField = 'drbi_accountid'
                TableField = 'drbi_accountid'
              end
              item
                DatasetField = 'drbi_accountno'
                TableField = 'drbi_accountno'
              end
              item
                DatasetField = 'drbi_preaccountid'
                TableField = 'drbi_preaccountid'
              end
              item
                DatasetField = 'drbi_preaccountno'
                TableField = 'drbi_preaccountno'
              end
              item
                DatasetField = 'drbi_type'
                TableField = 'drbi_type'
              end
              item
                DatasetField = 'drbi_mcode'
                TableField = 'drbi_mcode'
              end
              item
                DatasetField = 'drbi_rate'
                TableField = 'drbi_rate'
              end
              item
                DatasetField = 'drbi_amt'
                TableField = 'drbi_amt'
              end
              item
                DatasetField = 'drbi_bankcost'
                TableField = 'drbi_bankcost'
              end
              item
                DatasetField = 'drbi_otherfee'
                TableField = 'drbi_otherfee'
              end
              item
                DatasetField = 'drbi_balanceamt'
                TableField = 'drbi_balanceamt'
              end
              item
                DatasetField = 'drbi_remark'
                TableField = 'drbi_remark'
              end
              item
                DatasetField = 'drbi_billid'
                TableField = 'drbi_billid'
              end
              item
                DatasetField = 'drbi_billno'
                TableField = 'drbi_billno'
              end>
          end>
        Name = 'd_receivebalanceitem'
        Fields = <
          item
            Name = 'drbi_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'drbi_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'drbi_accountid'
            DataType = datGuid
          end
          item
            Name = 'drbi_accountno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drbi_preaccountid'
            DataType = datGuid
          end
          item
            Name = 'drbi_preaccountno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drbi_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drbi_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'drbi_rate'
            DataType = datFloat
          end
          item
            Name = 'drbi_amt'
            DataType = datFloat
          end
          item
            Name = 'drbi_bankcost'
            DataType = datFloat
          end
          item
            Name = 'drbi_otherfee'
            DataType = datFloat
          end
          item
            Name = 'drbi_balanceamt'
            DataType = datFloat
          end
          item
            Name = 'drbi_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'drbi_billid'
            DataType = datGuid
          end
          item
            Name = 'drbi_billno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_receiveinvoiceitem'
            SQL = 
              'SELECT '#10'    drii_pid, drii_serial, drii_object, drii_price, drii' +
              '_qty, '#10'    drii_amt, drii_remark'#10'  FROM'#10'    d_receiveinvoiceitem' +
              #10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'drii_pid'
                TableField = 'drii_pid'
              end
              item
                DatasetField = 'drii_serial'
                TableField = 'drii_serial'
              end
              item
                DatasetField = 'drii_object'
                TableField = 'drii_object'
              end
              item
                DatasetField = 'drii_price'
                TableField = 'drii_price'
              end
              item
                DatasetField = 'drii_qty'
                TableField = 'drii_qty'
              end
              item
                DatasetField = 'drii_amt'
                TableField = 'drii_amt'
              end
              item
                DatasetField = 'drii_remark'
                TableField = 'drii_remark'
              end>
          end>
        Name = 'd_receiveinvoiceitem'
        Fields = <
          item
            Name = 'drii_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'drii_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'drii_object'
            DataType = datString
            Size = 60
          end
          item
            Name = 'drii_price'
            DataType = datFloat
          end
          item
            Name = 'drii_qty'
            DataType = datFloat
          end
          item
            Name = 'drii_amt'
            DataType = datFloat
          end
          item
            Name = 'drii_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_receiveinvoiceaccount'
            SQL = 
              'SELECT '#10'    dria_pid, dria_serial, dria_accountid, dria_accountn' +
              'o, '#10'    dria_accountamt, dria_amt, dria_balance, dria_balance2, ' +
              #10'    dria_remark'#10'  FROM'#10'    d_receiveinvoiceaccount'#10'  WHERE {Whe' +
              're}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dria_pid'
                TableField = 'dria_pid'
              end
              item
                DatasetField = 'dria_serial'
                TableField = 'dria_serial'
              end
              item
                DatasetField = 'dria_accountid'
                TableField = 'dria_accountid'
              end
              item
                DatasetField = 'dria_accountno'
                TableField = 'dria_accountno'
              end
              item
                DatasetField = 'dria_accountamt'
                TableField = 'dria_accountamt'
              end
              item
                DatasetField = 'dria_amt'
                TableField = 'dria_amt'
              end
              item
                DatasetField = 'dria_balance'
                TableField = 'dria_balance'
              end
              item
                DatasetField = 'dria_balance2'
                TableField = 'dria_balance2'
              end
              item
                DatasetField = 'dria_remark'
                TableField = 'dria_remark'
              end>
          end>
        Name = 'd_receiveinvoiceaccount'
        Fields = <
          item
            Name = 'dria_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dria_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dria_accountid'
            DataType = datGuid
          end
          item
            Name = 'dria_accountno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dria_accountamt'
            DataType = datFloat
          end
          item
            Name = 'dria_amt'
            DataType = datFloat
          end
          item
            Name = 'dria_balance'
            DataType = datFloat
          end
          item
            Name = 'dria_balance2'
            DataType = datFloat
          end
          item
            Name = 'dria_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_remark'
            SQL = 
              'SELECT '#10'    br_id, br_pid, br_date, br_content'#10'  FROM'#10'    b_rema' +
              'rk'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'br_id'
                TableField = 'br_id'
              end
              item
                DatasetField = 'br_pid'
                TableField = 'br_pid'
              end
              item
                DatasetField = 'br_date'
                TableField = 'br_date'
              end
              item
                DatasetField = 'br_content'
                TableField = 'br_content'
              end>
          end>
        Name = 'b_remark'
        Fields = <
          item
            Name = 'br_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'br_pid'
            DataType = datGuid
          end
          item
            Name = 'br_date'
            DataType = datDateTime
          end
          item
            Name = 'br_content'
            DataType = datString
            Size = 500
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_customerfollow'
            SQL = 
              'SELECT '#10'    bcf_id, bcf_pid, bcf_date, bcf_man, bcf_staff, bcf_t' +
              'itle, '#10'    bcf_content, bcf_type, bcf_filename, bcf_fileext, bcf' +
              '_opstaff'#10'  FROM'#10'    b_customerfollow'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bcf_id'
                TableField = 'bcf_id'
              end
              item
                DatasetField = 'bcf_pid'
                TableField = 'bcf_pid'
              end
              item
                DatasetField = 'bcf_date'
                TableField = 'bcf_date'
              end
              item
                DatasetField = 'bcf_man'
                TableField = 'bcf_man'
              end
              item
                DatasetField = 'bcf_staff'
                TableField = 'bcf_staff'
              end
              item
                DatasetField = 'bcf_title'
                TableField = 'bcf_title'
              end
              item
                DatasetField = 'bcf_content'
                TableField = 'bcf_content'
              end
              item
                DatasetField = 'bcf_type'
                TableField = 'bcf_type'
              end
              item
                DatasetField = 'bcf_filename'
                TableField = 'bcf_filename'
              end
              item
                DatasetField = 'bcf_fileext'
                TableField = 'bcf_fileext'
              end
              item
                DatasetField = 'bcf_opstaff'
                TableField = 'bcf_opstaff'
              end>
          end>
        Name = 'b_customerfollow'
        Fields = <
          item
            Name = 'bcf_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bcf_pid'
            DataType = datGuid
          end
          item
            Name = 'bcf_date'
            DataType = datDateTime
          end
          item
            Name = 'bcf_man'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bcf_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bcf_title'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bcf_content'
            DataType = datString
            Size = 4000
          end
          item
            Name = 'bcf_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bcf_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'bcf_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bcf_opstaff'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_customerproduct'
            SQL = 
              'SELECT '#10'    bcp_id, bcp_cid, bcp_pid, bcp_productno, bcp_product' +
              'realno, '#10'    bcp_cproductno, bcp_cnname, bcp_enname, bcp_cndesc,' +
              ' '#10'    bcp_endesc, bcp_unit'#10'  FROM'#10'    b_customerproduct'#10'  WHERE ' +
              '{Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bcp_id'
                TableField = 'bcp_id'
              end
              item
                DatasetField = 'bcp_cid'
                TableField = 'bcp_cid'
              end
              item
                DatasetField = 'bcp_pid'
                TableField = 'bcp_pid'
              end
              item
                DatasetField = 'bcp_productno'
                TableField = 'bcp_productno'
              end
              item
                DatasetField = 'bcp_productrealno'
                TableField = 'bcp_productrealno'
              end
              item
                DatasetField = 'bcp_cproductno'
                TableField = 'bcp_cproductno'
              end
              item
                DatasetField = 'bcp_cnname'
                TableField = 'bcp_cnname'
              end
              item
                DatasetField = 'bcp_enname'
                TableField = 'bcp_enname'
              end
              item
                DatasetField = 'bcp_cndesc'
                TableField = 'bcp_cndesc'
              end
              item
                DatasetField = 'bcp_endesc'
                TableField = 'bcp_endesc'
              end
              item
                DatasetField = 'bcp_unit'
                TableField = 'bcp_unit'
              end>
          end>
        Name = 'b_customerproduct'
        Fields = <
          item
            Name = 'bcp_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bcp_cid'
            DataType = datGuid
          end
          item
            Name = 'bcp_pid'
            DataType = datGuid
          end
          item
            Name = 'bcp_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bcp_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bcp_cproductno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bcp_cnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bcp_enname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bcp_cndesc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bcp_endesc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bcp_unit'
            DataType = datString
            Size = 10
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_customer'
            SQL = 
              'SELECT '#10'    bc_id, bc_no, bc_no2, bc_enname, bc_cnname, bc_enadd' +
              'ress, '#10'    bc_cnaddress, bc_simpname, bc_type, bc_nation, bc_sta' +
              'ff, '#10'    bc_staffid, bc_staffiid, bc_department, bc_industry, '#10' ' +
              '   bc_sign, bc_getfrom, bc_principal, bc_tel, bc_fax, '#10'    bc_po' +
              'stcode, bc_mail, bc_website, bc_shipto, bc_consignee, '#10'    bc_no' +
              'ticeparty, bc_bankid, bc_remark, bc_priceterm, '#10'    bc_paymentmo' +
              'de, bc_createdate, bc_createstaff, bc_modifydate, '#10'    bc_modify' +
              'staff,bc_taxcode,bc_bankname,bc_bankaccountno'#10'  FROM'#10'    b_custo' +
              'mer'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bc_id'
                TableField = 'bc_id'
              end
              item
                DatasetField = 'bc_no'
                TableField = 'bc_no'
              end
              item
                DatasetField = 'bc_no2'
                TableField = 'bc_no2'
              end
              item
                DatasetField = 'bc_enname'
                TableField = 'bc_enname'
              end
              item
                DatasetField = 'bc_cnname'
                TableField = 'bc_cnname'
              end
              item
                DatasetField = 'bc_enaddress'
                TableField = 'bc_enaddress'
              end
              item
                DatasetField = 'bc_cnaddress'
                TableField = 'bc_cnaddress'
              end
              item
                DatasetField = 'bc_simpname'
                TableField = 'bc_simpname'
              end
              item
                DatasetField = 'bc_type'
                TableField = 'bc_type'
              end
              item
                DatasetField = 'bc_nation'
                TableField = 'bc_nation'
              end
              item
                DatasetField = 'bc_staff'
                TableField = 'bc_staff'
              end
              item
                DatasetField = 'bc_staffid'
                TableField = 'bc_staffid'
              end
              item
                DatasetField = 'bc_staffiid'
                TableField = 'bc_staffiid'
              end
              item
                DatasetField = 'bc_department'
                TableField = 'bc_department'
              end
              item
                DatasetField = 'bc_industry'
                TableField = 'bc_industry'
              end
              item
                DatasetField = 'bc_sign'
                TableField = 'bc_sign'
              end
              item
                DatasetField = 'bc_getfrom'
                TableField = 'bc_getfrom'
              end
              item
                DatasetField = 'bc_principal'
                TableField = 'bc_principal'
              end
              item
                DatasetField = 'bc_tel'
                TableField = 'bc_tel'
              end
              item
                DatasetField = 'bc_fax'
                TableField = 'bc_fax'
              end
              item
                DatasetField = 'bc_postcode'
                TableField = 'bc_postcode'
              end
              item
                DatasetField = 'bc_mail'
                TableField = 'bc_mail'
              end
              item
                DatasetField = 'bc_website'
                TableField = 'bc_website'
              end
              item
                DatasetField = 'bc_shipto'
                TableField = 'bc_shipto'
              end
              item
                DatasetField = 'bc_consignee'
                TableField = 'bc_consignee'
              end
              item
                DatasetField = 'bc_noticeparty'
                TableField = 'bc_noticeparty'
              end
              item
                DatasetField = 'bc_bankid'
                TableField = 'bc_bankid'
              end
              item
                DatasetField = 'bc_remark'
                TableField = 'bc_remark'
              end
              item
                DatasetField = 'bc_priceterm'
                TableField = 'bc_priceterm'
              end
              item
                DatasetField = 'bc_paymentmode'
                TableField = 'bc_paymentmode'
              end
              item
                DatasetField = 'bc_createdate'
                TableField = 'bc_createdate'
              end
              item
                DatasetField = 'bc_createstaff'
                TableField = 'bc_createstaff'
              end
              item
                DatasetField = 'bc_modifydate'
                TableField = 'bc_modifydate'
              end
              item
                DatasetField = 'bc_modifystaff'
                TableField = 'bc_modifystaff'
              end
              item
                DatasetField = 'bc_taxcode'
                TableField = 'bc_taxcode'
              end
              item
                DatasetField = 'bc_bankname'
                TableField = 'bc_bankname'
              end
              item
                DatasetField = 'bc_bankaccountno'
                TableField = 'bc_bankaccountno'
              end>
          end>
        Name = 'b_customer'
        Fields = <
          item
            Name = 'bc_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bc_no'
            DataType = datString
            Size = 20
            Required = True
          end
          item
            Name = 'bc_no2'
            DataType = datString
            Size = 10
            Required = True
          end
          item
            Name = 'bc_enname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bc_cnname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bc_enaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bc_cnaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bc_simpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_nation'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_staffid'
            DataType = datGuid
          end
          item
            Name = 'bc_staffiid'
            DataType = datInteger
          end
          item
            Name = 'bc_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_industry'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_sign'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_getfrom'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_principal'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_tel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_fax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_postcode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_mail'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bc_website'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bc_shipto'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_consignee'
            DataType = datString
            Size = 500
          end
          item
            Name = 'bc_noticeparty'
            DataType = datString
            Size = 500
          end
          item
            Name = 'bc_bankid'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bc_remark'
            DataType = datString
            Size = 1000
          end
          item
            Name = 'bc_priceterm'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_paymentmode'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bc_createdate'
            DataType = datDateTime
          end
          item
            Name = 'bc_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'bc_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_taxcode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bc_bankname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bc_bankaccountno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_factory'
            SQL = 
              'SELECT '#10'    bf_id, bf_no, bf_no2, bf_simpname, bf_cnname, bf_cna' +
              'ddress, '#10'    bf_province, bf_city, bf_principal, bf_tel, bf_fax,' +
              ' '#10'    bf_postcode, bf_mail, bf_website, bf_way, bf_type2, '#10'    b' +
              'f_staff, bf_staffid, bf_staffiid, bf_department, bf_remark,bf_ta' +
              'xcode,bf_bankname,bf_bankaccountno'#10'  FROM'#10'    b_factory'#10'  WHERE ' +
              '{Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bf_id'
                TableField = 'bf_id'
              end
              item
                DatasetField = 'bf_no'
                TableField = 'bf_no'
              end
              item
                DatasetField = 'bf_no2'
                TableField = 'bf_no2'
              end
              item
                DatasetField = 'bf_simpname'
                TableField = 'bf_simpname'
              end
              item
                DatasetField = 'bf_cnname'
                TableField = 'bf_cnname'
              end
              item
                DatasetField = 'bf_cnaddress'
                TableField = 'bf_cnaddress'
              end
              item
                DatasetField = 'bf_province'
                TableField = 'bf_province'
              end
              item
                DatasetField = 'bf_city'
                TableField = 'bf_city'
              end
              item
                DatasetField = 'bf_principal'
                TableField = 'bf_principal'
              end
              item
                DatasetField = 'bf_tel'
                TableField = 'bf_tel'
              end
              item
                DatasetField = 'bf_fax'
                TableField = 'bf_fax'
              end
              item
                DatasetField = 'bf_postcode'
                TableField = 'bf_postcode'
              end
              item
                DatasetField = 'bf_mail'
                TableField = 'bf_mail'
              end
              item
                DatasetField = 'bf_website'
                TableField = 'bf_website'
              end
              item
                DatasetField = 'bf_way'
                TableField = 'bf_way'
              end
              item
                DatasetField = 'bf_type2'
                TableField = 'bf_type2'
              end
              item
                DatasetField = 'bf_staff'
                TableField = 'bf_staff'
              end
              item
                DatasetField = 'bf_staffid'
                TableField = 'bf_staffid'
              end
              item
                DatasetField = 'bf_staffiid'
                TableField = 'bf_staffiid'
              end
              item
                DatasetField = 'bf_department'
                TableField = 'bf_department'
              end
              item
                DatasetField = 'bf_remark'
                TableField = 'bf_remark'
              end
              item
                DatasetField = 'bf_taxcode'
                TableField = 'bf_taxcode'
              end
              item
                DatasetField = 'bf_bankname'
                TableField = 'bf_bankname'
              end
              item
                DatasetField = 'bf_bankaccountno'
                TableField = 'bf_bankaccountno'
              end>
          end>
        Name = 'b_factory'
        Fields = <
          item
            Name = 'bf_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bf_no'
            DataType = datString
            Size = 20
            Required = True
          end
          item
            Name = 'bf_no2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_simpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_cnname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bf_cnaddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bf_province'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bf_city'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bf_principal'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_tel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_fax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_postcode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_mail'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bf_website'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bf_way'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_type2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_staffid'
            DataType = datGuid
          end
          item
            Name = 'bf_staffiid'
            DataType = datInteger
          end
          item
            Name = 'bf_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bf_taxcode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_bankname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bf_bankaccountno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_feemanage'
            SQL = 
              'SELECT '#10'    dfm_id, dfm_no, dfm_name, dfm_desc, dfm_user, dfm_st' +
              'affid, '#10'    dfm_depart, dfm_date, dfm_mcode, dfm_rate, dfm_amt, ' +
              #10'    dfm_companyamt, dfm_departamt, dfm_piamt, dfm_checkstate, '#10 +
              '    dfm_checkstaff, dfm_checkdate, dfm_createstaff, dfm_createda' +
              'te, '#10'    dfm_checklevel, dfm_currentchecklevel, dfm_checkstaffs,' +
              ' '#10'    dfm_needcheckstaffs, dfm_remark, dfm_checkrequestman, '#10'   ' +
              ' dfm_checkrequestid, dfm_invoicenos, dfm_billnos, dfm_type, '#10'   ' +
              ' dfm_objectid, dfm_objectname, dfm_iid, dfm_state, dfm_currentch' +
              'eckstaffid, '#10'    dfm_type2, dfm_relatedpi'#10'  FROM'#10'    d_feemanage' +
              #10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dfm_id'
                TableField = 'dfm_id'
              end
              item
                DatasetField = 'dfm_no'
                TableField = 'dfm_no'
              end
              item
                DatasetField = 'dfm_name'
                TableField = 'dfm_name'
              end
              item
                DatasetField = 'dfm_desc'
                TableField = 'dfm_desc'
              end
              item
                DatasetField = 'dfm_user'
                TableField = 'dfm_user'
              end
              item
                DatasetField = 'dfm_staffid'
                TableField = 'dfm_staffid'
              end
              item
                DatasetField = 'dfm_depart'
                TableField = 'dfm_depart'
              end
              item
                DatasetField = 'dfm_date'
                TableField = 'dfm_date'
              end
              item
                DatasetField = 'dfm_mcode'
                TableField = 'dfm_mcode'
              end
              item
                DatasetField = 'dfm_rate'
                TableField = 'dfm_rate'
              end
              item
                DatasetField = 'dfm_amt'
                TableField = 'dfm_amt'
              end
              item
                DatasetField = 'dfm_companyamt'
                TableField = 'dfm_companyamt'
              end
              item
                DatasetField = 'dfm_departamt'
                TableField = 'dfm_departamt'
              end
              item
                DatasetField = 'dfm_piamt'
                TableField = 'dfm_piamt'
              end
              item
                DatasetField = 'dfm_checkstate'
                TableField = 'dfm_checkstate'
              end
              item
                DatasetField = 'dfm_checkstaff'
                TableField = 'dfm_checkstaff'
              end
              item
                DatasetField = 'dfm_checkdate'
                TableField = 'dfm_checkdate'
              end
              item
                DatasetField = 'dfm_createstaff'
                TableField = 'dfm_createstaff'
              end
              item
                DatasetField = 'dfm_createdate'
                TableField = 'dfm_createdate'
              end
              item
                DatasetField = 'dfm_checklevel'
                TableField = 'dfm_checklevel'
              end
              item
                DatasetField = 'dfm_currentchecklevel'
                TableField = 'dfm_currentchecklevel'
              end
              item
                DatasetField = 'dfm_checkstaffs'
                TableField = 'dfm_checkstaffs'
              end
              item
                DatasetField = 'dfm_needcheckstaffs'
                TableField = 'dfm_needcheckstaffs'
              end
              item
                DatasetField = 'dfm_remark'
                TableField = 'dfm_remark'
              end
              item
                DatasetField = 'dfm_checkrequestman'
                TableField = 'dfm_checkrequestman'
              end
              item
                DatasetField = 'dfm_checkrequestid'
                TableField = 'dfm_checkrequestid'
              end
              item
                DatasetField = 'dfm_invoicenos'
                TableField = 'dfm_invoicenos'
              end
              item
                DatasetField = 'dfm_billnos'
                TableField = 'dfm_billnos'
              end
              item
                DatasetField = 'dfm_type'
                TableField = 'dfm_type'
              end
              item
                DatasetField = 'dfm_objectid'
                TableField = 'dfm_objectid'
              end
              item
                DatasetField = 'dfm_objectname'
                TableField = 'dfm_objectname'
              end
              item
                DatasetField = 'dfm_iid'
                TableField = 'dfm_iid'
              end
              item
                DatasetField = 'dfm_state'
                TableField = 'dfm_state'
              end
              item
                DatasetField = 'dfm_currentcheckstaffid'
                TableField = 'dfm_currentcheckstaffid'
              end
              item
                DatasetField = 'dfm_type2'
                TableField = 'dfm_type2'
              end
              item
                DatasetField = 'dfm_relatedpi'
                TableField = 'dfm_relatedpi'
              end>
          end>
        Name = 'd_feemanage'
        Fields = <
          item
            Name = 'dfm_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dfm_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfm_name'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfm_desc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfm_user'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfm_staffid'
            DataType = datGuid
          end
          item
            Name = 'dfm_depart'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfm_date'
            DataType = datDateTime
          end
          item
            Name = 'dfm_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dfm_rate'
            DataType = datFloat
          end
          item
            Name = 'dfm_amt'
            DataType = datFloat
          end
          item
            Name = 'dfm_companyamt'
            DataType = datFloat
          end
          item
            Name = 'dfm_departamt'
            DataType = datFloat
          end
          item
            Name = 'dfm_piamt'
            DataType = datFloat
          end
          item
            Name = 'dfm_checkstate'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dfm_checkstaff'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dfm_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dfm_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfm_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dfm_checklevel'
            DataType = datInteger
          end
          item
            Name = 'dfm_currentchecklevel'
            DataType = datInteger
          end
          item
            Name = 'dfm_checkstaffs'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dfm_needcheckstaffs'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dfm_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfm_checkrequestman'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfm_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dfm_invoicenos'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dfm_billnos'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dfm_type'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dfm_objectid'
            DataType = datGuid
          end
          item
            Name = 'dfm_objectname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfm_iid'
            DataType = datGuid
          end
          item
            Name = 'dfm_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfm_currentcheckstaffid'
            DataType = datString
            Size = 40
          end
          item
            Name = 'dfm_type2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfm_relatedpi'
            DataType = datString
            Size = 200
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_feemanageitem2'
            SQL = 
              'SELECT '#10'    dfmi2_pid, dfmi2_serial, dfmi2_piid, dfmi2_pino, dfm' +
              'i2_desc, '#10'    dfmu2_amt, dfmu2_remark'#10'  FROM'#10'    d_feemanageitem' +
              '2'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dfmi2_pid'
                TableField = 'dfmi2_pid'
              end
              item
                DatasetField = 'dfmi2_serial'
                TableField = 'dfmi2_serial'
              end
              item
                DatasetField = 'dfmi2_piid'
                TableField = 'dfmi2_piid'
              end
              item
                DatasetField = 'dfmi2_pino'
                TableField = 'dfmi2_pino'
              end
              item
                DatasetField = 'dfmi2_desc'
                TableField = 'dfmi2_desc'
              end
              item
                DatasetField = 'dfmu2_amt'
                TableField = 'dfmu2_amt'
              end
              item
                DatasetField = 'dfmu2_remark'
                TableField = 'dfmu2_remark'
              end>
          end>
        Name = 'd_feemanageitem2'
        Fields = <
          item
            Name = 'dfmi2_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dfmi2_serial'
            DataType = datAutoInc
            GeneratorName = 'd_feemanageitem2'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dfmi2_piid'
            DataType = datGuid
          end
          item
            Name = 'dfmi2_pino'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfmi2_desc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfmu2_amt'
            DataType = datFloat
          end
          item
            Name = 'dfmu2_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_feeobject'
            SQL = 
              'SELECT '#10'    bfo_id, bfo_name, bfo_classid, bfo_valid'#10'  FROM'#10'    ' +
              'b_feeobject'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bfo_id'
                TableField = 'bfo_id'
              end
              item
                DatasetField = 'bfo_name'
                TableField = 'bfo_name'
              end
              item
                DatasetField = 'bfo_classid'
                TableField = 'bfo_classid'
              end
              item
                DatasetField = 'bfo_valid'
                TableField = 'bfo_valid'
              end>
          end>
        Name = 'b_feeobject'
        Fields = <
          item
            Name = 'bfo_id'
            DataType = datAutoInc
            GeneratorName = 'b_feeobject'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bfo_name'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bfo_classid'
            DataType = datInteger
          end
          item
            Name = 'bfo_valid'
            DataType = datString
            Size = 10
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_feeobjectclass'
            SQL = 
              'SELECT '#10'    bfoc_id, bfoc_name'#10'  FROM'#10'    b_feeobjectclass'#10'  WHE' +
              'RE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bfoc_id'
                TableField = 'bfoc_id'
              end
              item
                DatasetField = 'bfoc_name'
                TableField = 'bfoc_name'
              end>
          end>
        Name = 'b_feeobjectclass'
        Fields = <
          item
            Name = 'bfoc_id'
            DataType = datAutoInc
            GeneratorName = 'b_feeobjectclass'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bfoc_name'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_factoryinquiredetails'
            SQL = 
              'SELECT '#10'    dfid_pid, dfid_pno, dfid_serial, dfid_productid, dfi' +
              'd_productno, '#10'    dfid_productrealno, dfid_productsimpname, dfid' +
              '_productcnname, '#10'    dfid_productenname, dfid_desc, dfid_mcode, ' +
              'dfid_buyprice, '#10'    dfid_wantprice, dfid_deliverdate, dfid_unit,' +
              ' dfid_qty, '#10'    dfid_remark, dfid_order'#10'  FROM'#10'    d_factoryinqu' +
              'iredetails'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dfid_pid'
                TableField = 'dfid_pid'
              end
              item
                DatasetField = 'dfid_pno'
                TableField = 'dfid_pno'
              end
              item
                DatasetField = 'dfid_serial'
                TableField = 'dfid_serial'
              end
              item
                DatasetField = 'dfid_productid'
                TableField = 'dfid_productid'
              end
              item
                DatasetField = 'dfid_productno'
                TableField = 'dfid_productno'
              end
              item
                DatasetField = 'dfid_productrealno'
                TableField = 'dfid_productrealno'
              end
              item
                DatasetField = 'dfid_productsimpname'
                TableField = 'dfid_productsimpname'
              end
              item
                DatasetField = 'dfid_productcnname'
                TableField = 'dfid_productcnname'
              end
              item
                DatasetField = 'dfid_productenname'
                TableField = 'dfid_productenname'
              end
              item
                DatasetField = 'dfid_desc'
                TableField = 'dfid_desc'
              end
              item
                DatasetField = 'dfid_mcode'
                TableField = 'dfid_mcode'
              end
              item
                DatasetField = 'dfid_buyprice'
                TableField = 'dfid_buyprice'
              end
              item
                DatasetField = 'dfid_wantprice'
                TableField = 'dfid_wantprice'
              end
              item
                DatasetField = 'dfid_deliverdate'
                TableField = 'dfid_deliverdate'
              end
              item
                DatasetField = 'dfid_unit'
                TableField = 'dfid_unit'
              end
              item
                DatasetField = 'dfid_qty'
                TableField = 'dfid_qty'
              end
              item
                DatasetField = 'dfid_remark'
                TableField = 'dfid_remark'
              end
              item
                DatasetField = 'dfid_order'
                TableField = 'dfid_order'
              end>
          end>
        Name = 'd_factoryinquiredetails'
        Fields = <
          item
            Name = 'dfid_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dfid_pno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dfid_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dfid_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dfid_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfid_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfid_productsimpname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfid_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfid_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfid_desc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dfid_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dfid_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dfid_wantprice'
            DataType = datFloat
          end
          item
            Name = 'dfid_deliverdate'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfid_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dfid_qty'
            DataType = datFloat
          end
          item
            Name = 'dfid_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfid_order'
            DataType = datInteger
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_piitem'
            SQL = 
              'SELECT '#10'    dpi_pid, dpi_serial, dpi_productid, dpi_productno, '#10 +
              '    dpi_productrealno, dpi_enname, dpi_chname, dpi_simpname, '#10'  ' +
              '  dpi_desc, dpi_sellprice, dpi_buymcode, dpi_buyrate, '#10'    dpi_b' +
              'uyprice, dpi_fid, dpi_fsimpname, dpi_qty, dpi_unit, '#10'    dpi_sel' +
              'lamt, dpi_sellamtrmb, dpi_buyamt, dpi_buyamtrmb, '#10'    dpi_profit' +
              ', dpi_profitrate, dpi_carriage, dpi_tariff, '#10'    dpi_valueaddtax' +
              ', dpi_otherfee, dpi_remark, dpi_outqty, '#10'    dpi_order,dpi_hscod' +
              'e,dpi_gw,dpi_gwamt,dpi_id'#10'  FROM'#10'    d_piitem'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpi_pid'
                TableField = 'dpi_pid'
              end
              item
                DatasetField = 'dpi_serial'
                TableField = 'dpi_serial'
              end
              item
                DatasetField = 'dpi_productid'
                TableField = 'dpi_productid'
              end
              item
                DatasetField = 'dpi_productno'
                TableField = 'dpi_productno'
              end
              item
                DatasetField = 'dpi_productrealno'
                TableField = 'dpi_productrealno'
              end
              item
                DatasetField = 'dpi_enname'
                TableField = 'dpi_enname'
              end
              item
                DatasetField = 'dpi_chname'
                TableField = 'dpi_chname'
              end
              item
                DatasetField = 'dpi_simpname'
                TableField = 'dpi_simpname'
              end
              item
                DatasetField = 'dpi_desc'
                TableField = 'dpi_desc'
              end
              item
                DatasetField = 'dpi_sellprice'
                TableField = 'dpi_sellprice'
              end
              item
                DatasetField = 'dpi_buymcode'
                TableField = 'dpi_buymcode'
              end
              item
                DatasetField = 'dpi_buyrate'
                TableField = 'dpi_buyrate'
              end
              item
                DatasetField = 'dpi_buyprice'
                TableField = 'dpi_buyprice'
              end
              item
                DatasetField = 'dpi_fid'
                TableField = 'dpi_fid'
              end
              item
                DatasetField = 'dpi_fsimpname'
                TableField = 'dpi_fsimpname'
              end
              item
                DatasetField = 'dpi_qty'
                TableField = 'dpi_qty'
              end
              item
                DatasetField = 'dpi_unit'
                TableField = 'dpi_unit'
              end
              item
                DatasetField = 'dpi_sellamt'
                TableField = 'dpi_sellamt'
              end
              item
                DatasetField = 'dpi_sellamtrmb'
                TableField = 'dpi_sellamtrmb'
              end
              item
                DatasetField = 'dpi_buyamt'
                TableField = 'dpi_buyamt'
              end
              item
                DatasetField = 'dpi_buyamtrmb'
                TableField = 'dpi_buyamtrmb'
              end
              item
                DatasetField = 'dpi_profit'
                TableField = 'dpi_profit'
              end
              item
                DatasetField = 'dpi_profitrate'
                TableField = 'dpi_profitrate'
              end
              item
                DatasetField = 'dpi_carriage'
                TableField = 'dpi_carriage'
              end
              item
                DatasetField = 'dpi_tariff'
                TableField = 'dpi_tariff'
              end
              item
                DatasetField = 'dpi_valueaddtax'
                TableField = 'dpi_valueaddtax'
              end
              item
                DatasetField = 'dpi_otherfee'
                TableField = 'dpi_otherfee'
              end
              item
                DatasetField = 'dpi_remark'
                TableField = 'dpi_remark'
              end
              item
                DatasetField = 'dpi_outqty'
                TableField = 'dpi_outqty'
              end
              item
                DatasetField = 'dpi_order'
                TableField = 'dpi_order'
              end
              item
                DatasetField = 'dpi_hscode'
                TableField = 'dpi_hscode'
              end
              item
                DatasetField = 'dpi_gw'
                TableField = 'dpi_gw'
              end
              item
                DatasetField = 'dpi_gwamt'
                TableField = 'dpi_gwamt'
              end
              item
                DatasetField = 'dpi_id'
                TableField = 'dpi_id'
              end>
          end>
        Name = 'd_piitem'
        Fields = <
          item
            Name = 'dpi_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpi_serial'
            DataType = datFloat
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpi_productid'
            DataType = datGuid
          end
          item
            Name = 'dpi_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpi_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpi_enname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpi_chname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpi_simpname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpi_desc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dpi_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dpi_buymcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dpi_buyrate'
            DataType = datFloat
          end
          item
            Name = 'dpi_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dpi_fid'
            DataType = datGuid
          end
          item
            Name = 'dpi_fsimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpi_qty'
            DataType = datFloat
          end
          item
            Name = 'dpi_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dpi_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dpi_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dpi_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dpi_buyamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dpi_profit'
            DataType = datFloat
          end
          item
            Name = 'dpi_profitrate'
            DataType = datFloat
          end
          item
            Name = 'dpi_carriage'
            DataType = datFloat
          end
          item
            Name = 'dpi_tariff'
            DataType = datFloat
          end
          item
            Name = 'dpi_valueaddtax'
            DataType = datFloat
          end
          item
            Name = 'dpi_otherfee'
            DataType = datFloat
          end
          item
            Name = 'dpi_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpi_outqty'
            DataType = datFloat
          end
          item
            Name = 'dpi_order'
            DataType = datFloat
          end
          item
            Name = 'dpi_hscode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpi_gw'
            DataType = datFloat
          end
          item
            Name = 'dpi_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dpi_id'
            DataType = datAutoInc
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_quotationitem'
            SQL = 
              'SELECT '#10'    dqi_pid, dqi_serial, dqi_productid, dqi_productno, '#10 +
              '    dqi_productrealno, dqi_productname, dqi_productcnname, '#10'    ' +
              'dqi_productenname, dqi_productdesc, dqi_sellprice, '#10'    dqi_sell' +
              'amt, dqi_sellamtrmb, dqi_buymcode, dqi_buyrate, '#10'    dqi_buypric' +
              'e, dqi_buyamt, dqi_buyamtrmb, dqi_fid, dqi_fsimpname, '#10'    dqi_q' +
              'ty, dqi_ratio, dqi_profit, dqi_profitrate, dqi_carriage, '#10'    dq' +
              'i_tariff, dqi_valueaddtax, dqi_otherfee, dqi_remark, '#10'    dqi_un' +
              'it, dqi_order, dqi_hscode, dqi_delidate'#10'  FROM'#10'    d_quotationit' +
              'em'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dqi_pid'
                TableField = 'dqi_pid'
              end
              item
                DatasetField = 'dqi_serial'
                TableField = 'dqi_serial'
              end
              item
                DatasetField = 'dqi_productid'
                TableField = 'dqi_productid'
              end
              item
                DatasetField = 'dqi_productno'
                TableField = 'dqi_productno'
              end
              item
                DatasetField = 'dqi_productrealno'
                TableField = 'dqi_productrealno'
              end
              item
                DatasetField = 'dqi_productname'
                TableField = 'dqi_productname'
              end
              item
                DatasetField = 'dqi_productcnname'
                TableField = 'dqi_productcnname'
              end
              item
                DatasetField = 'dqi_productenname'
                TableField = 'dqi_productenname'
              end
              item
                DatasetField = 'dqi_productdesc'
                TableField = 'dqi_productdesc'
              end
              item
                DatasetField = 'dqi_sellprice'
                TableField = 'dqi_sellprice'
              end
              item
                DatasetField = 'dqi_sellamt'
                TableField = 'dqi_sellamt'
              end
              item
                DatasetField = 'dqi_sellamtrmb'
                TableField = 'dqi_sellamtrmb'
              end
              item
                DatasetField = 'dqi_buymcode'
                TableField = 'dqi_buymcode'
              end
              item
                DatasetField = 'dqi_buyrate'
                TableField = 'dqi_buyrate'
              end
              item
                DatasetField = 'dqi_buyprice'
                TableField = 'dqi_buyprice'
              end
              item
                DatasetField = 'dqi_buyamt'
                TableField = 'dqi_buyamt'
              end
              item
                DatasetField = 'dqi_buyamtrmb'
                TableField = 'dqi_buyamtrmb'
              end
              item
                DatasetField = 'dqi_fid'
                TableField = 'dqi_fid'
              end
              item
                DatasetField = 'dqi_fsimpname'
                TableField = 'dqi_fsimpname'
              end
              item
                DatasetField = 'dqi_qty'
                TableField = 'dqi_qty'
              end
              item
                DatasetField = 'dqi_ratio'
                TableField = 'dqi_ratio'
              end
              item
                DatasetField = 'dqi_profit'
                TableField = 'dqi_profit'
              end
              item
                DatasetField = 'dqi_profitrate'
                TableField = 'dqi_profitrate'
              end
              item
                DatasetField = 'dqi_carriage'
                TableField = 'dqi_carriage'
              end
              item
                DatasetField = 'dqi_tariff'
                TableField = 'dqi_tariff'
              end
              item
                DatasetField = 'dqi_valueaddtax'
                TableField = 'dqi_valueaddtax'
              end
              item
                DatasetField = 'dqi_otherfee'
                TableField = 'dqi_otherfee'
              end
              item
                DatasetField = 'dqi_remark'
                TableField = 'dqi_remark'
              end
              item
                DatasetField = 'dqi_unit'
                TableField = 'dqi_unit'
              end
              item
                DatasetField = 'dqi_order'
                TableField = 'dqi_order'
              end
              item
                DatasetField = 'dqi_hscode'
                TableField = 'dqi_hscode'
              end
              item
                DatasetField = 'dqi_delidate'
                TableField = 'dqi_delidate'
              end>
          end>
        Name = 'd_quotationitem'
        Fields = <
          item
            Name = 'dqi_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dqi_serial'
            DataType = datFloat
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dqi_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dqi_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dqi_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dqi_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dqi_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dqi_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dqi_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dqi_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dqi_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dqi_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dqi_buymcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dqi_buyrate'
            DataType = datFloat
          end
          item
            Name = 'dqi_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dqi_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dqi_buyamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dqi_fid'
            DataType = datGuid
          end
          item
            Name = 'dqi_fsimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dqi_qty'
            DataType = datFloat
          end
          item
            Name = 'dqi_ratio'
            DataType = datFloat
          end
          item
            Name = 'dqi_profit'
            DataType = datFloat
          end
          item
            Name = 'dqi_profitrate'
            DataType = datFloat
          end
          item
            Name = 'dqi_carriage'
            DataType = datFloat
          end
          item
            Name = 'dqi_tariff'
            DataType = datFloat
          end
          item
            Name = 'dqi_valueaddtax'
            DataType = datFloat
          end
          item
            Name = 'dqi_otherfee'
            DataType = datFloat
          end
          item
            Name = 'dqi_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dqi_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dqi_order'
            DataType = datInteger
          end
          item
            Name = 'dqi_hscode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dqi_delidate'
            DataType = datString
            Size = 60
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_pistate'
            SQL = 
              'SELECT '#10'    dps_pid, dps_serial, dps_state, dps_billtype, dps_bi' +
              'llid, '#10'    dps_billno, dps_date, dps_remark,dps_filename,dps_fil' +
              'eext,dps_staff'#10'  FROM'#10'    d_pistate'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dps_pid'
                TableField = 'dps_pid'
              end
              item
                DatasetField = 'dps_serial'
                TableField = 'dps_serial'
              end
              item
                DatasetField = 'dps_state'
                TableField = 'dps_state'
              end
              item
                DatasetField = 'dps_billtype'
                TableField = 'dps_billtype'
              end
              item
                DatasetField = 'dps_billid'
                TableField = 'dps_billid'
              end
              item
                DatasetField = 'dps_billno'
                TableField = 'dps_billno'
              end
              item
                DatasetField = 'dps_date'
                TableField = 'dps_date'
              end
              item
                DatasetField = 'dps_remark'
                TableField = 'dps_remark'
              end
              item
                DatasetField = 'dps_filename'
                TableField = 'dps_filename'
              end
              item
                DatasetField = 'dps_fileext'
                TableField = 'dps_fileext'
              end
              item
                DatasetField = 'dps_staff'
                TableField = 'dps_staff'
              end>
          end>
        Name = 'd_pistate'
        Fields = <
          item
            Name = 'dps_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dps_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dps_state'
            DataType = datString
            Size = 4000
          end
          item
            Name = 'dps_billtype'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dps_billid'
            DataType = datGuid
          end
          item
            Name = 'dps_billno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dps_date'
            DataType = datDateTime
          end
          item
            Name = 'dps_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dps_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dps_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dps_staff'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_stock'
            SQL = 
              'SELECT '#10'    ds_id, ds_no, ds_piid, ds_pino, ds_date, ds_state, '#10 +
              '    ds_address, ds_fid, ds_fno, ds_fsimpname, ds_staff, '#10'    ds_' +
              'staffid, ds_staffiid, ds_mcode, ds_rate, ds_amt, '#10'    ds_qty, ds' +
              '_gw, ds_priceterm, ds_payment, ds_shipway, '#10'    ds_type, ds_deli' +
              'area, ds_delidate, ds_delidesc, ds_productname, '#10'    ds_stocksta' +
              'ff, ds_productcountry, ds_createstaff, ds_createdate, '#10'    ds_mo' +
              'difystaff, ds_modifydate, ds_remark, ds_remark2,ds_title,'#10'    ds' +
              '_cont, ds_checkrequeststaff, ds_checkrequestid, ds_checkstaff, d' +
              's_batchno,'#10'    ds_checkdate, ds_oid, ds_oiid, ds_osimpname, ds_f' +
              'ollowstate, ds_followdate,ds_projectno,ds_projectid'#10'  FROM'#10'    d' +
              '_stock'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'ds_id'
                TableField = 'ds_id'
              end
              item
                DatasetField = 'ds_no'
                TableField = 'ds_no'
              end
              item
                DatasetField = 'ds_piid'
                TableField = 'ds_piid'
              end
              item
                DatasetField = 'ds_pino'
                TableField = 'ds_pino'
              end
              item
                DatasetField = 'ds_date'
                TableField = 'ds_date'
              end
              item
                DatasetField = 'ds_state'
                TableField = 'ds_state'
              end
              item
                DatasetField = 'ds_address'
                TableField = 'ds_address'
              end
              item
                DatasetField = 'ds_fid'
                TableField = 'ds_fid'
              end
              item
                DatasetField = 'ds_fno'
                TableField = 'ds_fno'
              end
              item
                DatasetField = 'ds_fsimpname'
                TableField = 'ds_fsimpname'
              end
              item
                DatasetField = 'ds_staff'
                TableField = 'ds_staff'
              end
              item
                DatasetField = 'ds_staffid'
                TableField = 'ds_staffid'
              end
              item
                DatasetField = 'ds_staffiid'
                TableField = 'ds_staffiid'
              end
              item
                DatasetField = 'ds_mcode'
                TableField = 'ds_mcode'
              end
              item
                DatasetField = 'ds_rate'
                TableField = 'ds_rate'
              end
              item
                DatasetField = 'ds_amt'
                TableField = 'ds_amt'
              end
              item
                DatasetField = 'ds_qty'
                TableField = 'ds_qty'
              end
              item
                DatasetField = 'ds_gw'
                TableField = 'ds_gw'
              end
              item
                DatasetField = 'ds_priceterm'
                TableField = 'ds_priceterm'
              end
              item
                DatasetField = 'ds_payment'
                TableField = 'ds_payment'
              end
              item
                DatasetField = 'ds_shipway'
                TableField = 'ds_shipway'
              end
              item
                DatasetField = 'ds_type'
                TableField = 'ds_type'
              end
              item
                DatasetField = 'ds_deliarea'
                TableField = 'ds_deliarea'
              end
              item
                DatasetField = 'ds_delidate'
                TableField = 'ds_delidate'
              end
              item
                DatasetField = 'ds_delidesc'
                TableField = 'ds_delidesc'
              end
              item
                DatasetField = 'ds_productname'
                TableField = 'ds_productname'
              end
              item
                DatasetField = 'ds_stockstaff'
                TableField = 'ds_stockstaff'
              end
              item
                DatasetField = 'ds_productcountry'
                TableField = 'ds_productcountry'
              end
              item
                DatasetField = 'ds_createstaff'
                TableField = 'ds_createstaff'
              end
              item
                DatasetField = 'ds_createdate'
                TableField = 'ds_createdate'
              end
              item
                DatasetField = 'ds_modifystaff'
                TableField = 'ds_modifystaff'
              end
              item
                DatasetField = 'ds_modifydate'
                TableField = 'ds_modifydate'
              end
              item
                DatasetField = 'ds_remark'
                TableField = 'ds_remark'
              end
              item
                DatasetField = 'ds_remark2'
                TableField = 'ds_remark2'
              end
              item
                DatasetField = 'ds_cont'
                TableField = 'ds_cont'
              end
              item
                DatasetField = 'ds_checkrequeststaff'
                TableField = 'ds_checkrequeststaff'
              end
              item
                DatasetField = 'ds_checkrequestid'
                TableField = 'ds_checkrequestid'
              end
              item
                DatasetField = 'ds_checkstaff'
                TableField = 'ds_checkstaff'
              end
              item
                DatasetField = 'ds_checkdate'
                TableField = 'ds_checkdate'
              end
              item
                DatasetField = 'ds_oid'
                TableField = 'ds_oid'
              end
              item
                DatasetField = 'ds_oiid'
                TableField = 'ds_oiid'
              end
              item
                DatasetField = 'ds_osimpname'
                TableField = 'ds_osimpname'
              end
              item
                DatasetField = 'ds_followstate'
                TableField = 'ds_followstate'
              end
              item
                DatasetField = 'ds_followdate'
                TableField = 'ds_followdate'
              end
              item
                DatasetField = 'ds_projectno'
                TableField = 'ds_projectno'
              end
              item
                DatasetField = 'ds_projectid'
                TableField = 'ds_projectid'
              end
              item
                DatasetField = 'ds_batchno'
                TableField = 'ds_batchno'
              end
              item
                DatasetField = 'ds_title'
                TableField = 'ds_title'
              end>
          end>
        Name = 'd_stock'
        Fields = <
          item
            Name = 'ds_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'ds_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'ds_piid'
            DataType = datGuid
          end
          item
            Name = 'ds_pino'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_date'
            DataType = datDateTime
          end
          item
            Name = 'ds_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_address'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_fid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'ds_fno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_fsimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_staffid'
            DataType = datGuid
          end
          item
            Name = 'ds_staffiid'
            DataType = datInteger
          end
          item
            Name = 'ds_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'ds_rate'
            DataType = datFloat
          end
          item
            Name = 'ds_amt'
            DataType = datFloat
          end
          item
            Name = 'ds_qty'
            DataType = datFloat
          end
          item
            Name = 'ds_gw'
            DataType = datFloat
          end
          item
            Name = 'ds_priceterm'
            DataType = datString
            Size = 120
          end
          item
            Name = 'ds_payment'
            DataType = datString
            Size = 120
          end
          item
            Name = 'ds_shipway'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_deliarea'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_delidate'
            DataType = datDateTime
          end
          item
            Name = 'ds_delidesc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'ds_productname'
            DataType = datString
            Size = 60
          end
          item
            Name = 'ds_stockstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_productcountry'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_createdate'
            DataType = datDateTime
          end
          item
            Name = 'ds_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'ds_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'ds_remark2'
            DataType = datString
            Size = 500
          end
          item
            Name = 'ds_title'
            DataType = datString
            Size = 120
          end
          item
            Name = 'ds_cont'
            DataType = datMemo
          end
          item
            Name = 'ds_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'ds_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_batchno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'ds_oid'
            DataType = datGuid
          end
          item
            Name = 'ds_oiid'
            DataType = datInteger
          end
          item
            Name = 'ds_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'ds_followstate'
            DataType = datString
            Size = 120
          end
          item
            Name = 'ds_followdate'
            DataType = datDateTime
          end
          item
            Name = 'ds_projectno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'ds_projectid'
            DataType = datGuid
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_stockitem'
            SQL = 
              'SELECT '#10'    dsi_sid, dsi_serial, dsi_productid, dsi_productno, '#10 +
              '    dsi_productrealno, dsi_productname, dsi_productcnname, '#10'    ' +
              'dsi_productenname, dsi_productdesc, dsi_buyprice, dsi_buymcode, ' +
              #10'    dsi_buyrate, dsi_qty, dsi_unit, dsi_buyamt, dsi_bland, '#10'   ' +
              ' dsi_remark, dsi_order, dsi_customerpno, dsi_inqty ,dsi_id'#10'  FRO' +
              'M'#10'    d_stockitem'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dsi_sid'
                TableField = 'dsi_sid'
              end
              item
                DatasetField = 'dsi_serial'
                TableField = 'dsi_serial'
              end
              item
                DatasetField = 'dsi_productid'
                TableField = 'dsi_productid'
              end
              item
                DatasetField = 'dsi_productno'
                TableField = 'dsi_productno'
              end
              item
                DatasetField = 'dsi_productrealno'
                TableField = 'dsi_productrealno'
              end
              item
                DatasetField = 'dsi_productname'
                TableField = 'dsi_productname'
              end
              item
                DatasetField = 'dsi_productcnname'
                TableField = 'dsi_productcnname'
              end
              item
                DatasetField = 'dsi_productenname'
                TableField = 'dsi_productenname'
              end
              item
                DatasetField = 'dsi_productdesc'
                TableField = 'dsi_productdesc'
              end
              item
                DatasetField = 'dsi_buyprice'
                TableField = 'dsi_buyprice'
              end
              item
                DatasetField = 'dsi_buymcode'
                TableField = 'dsi_buymcode'
              end
              item
                DatasetField = 'dsi_buyrate'
                TableField = 'dsi_buyrate'
              end
              item
                DatasetField = 'dsi_qty'
                TableField = 'dsi_qty'
              end
              item
                DatasetField = 'dsi_unit'
                TableField = 'dsi_unit'
              end
              item
                DatasetField = 'dsi_buyamt'
                TableField = 'dsi_buyamt'
              end
              item
                DatasetField = 'dsi_bland'
                TableField = 'dsi_bland'
              end
              item
                DatasetField = 'dsi_remark'
                TableField = 'dsi_remark'
              end
              item
                DatasetField = 'dsi_order'
                TableField = 'dsi_order'
              end
              item
                DatasetField = 'dsi_customerpno'
                TableField = 'dsi_customerpno'
              end
              item
                DatasetField = 'dsi_inqty'
                TableField = 'dsi_inqty'
              end
              item
                DatasetField = 'dsi_id'
                TableField = 'dsi_id'
              end>
          end>
        Name = 'd_stockitem'
        Fields = <
          item
            Name = 'dsi_sid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dsi_serial'
            DataType = datFloat
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dsi_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dsi_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dsi_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dsi_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dsi_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dsi_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dsi_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dsi_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dsi_buymcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dsi_buyrate'
            DataType = datFloat
          end
          item
            Name = 'dsi_qty'
            DataType = datFloat
          end
          item
            Name = 'dsi_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dsi_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dsi_bland'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dsi_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dsi_order'
            DataType = datInteger
          end
          item
            Name = 'dsi_customerpno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dsi_inqty'
            DataType = datFloat
          end
          item
            Name = 'dsi_id'
            DataType = datAutoInc
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_stockstate'
            SQL = 
              'SELECT '#10'    dss_pid, dss_serial, dss_state, dss_billtype, dss_bi' +
              'llid, '#10'    dss_billno, dss_date, dss_remark ,dss_filename,dss_fi' +
              'leext,dss_staff'#10'  FROM'#10'    d_stockstate'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dss_pid'
                TableField = 'dss_pid'
              end
              item
                DatasetField = 'dss_serial'
                TableField = 'dss_serial'
              end
              item
                DatasetField = 'dss_state'
                TableField = 'dss_state'
              end
              item
                DatasetField = 'dss_billtype'
                TableField = 'dss_billtype'
              end
              item
                DatasetField = 'dss_billid'
                TableField = 'dss_billid'
              end
              item
                DatasetField = 'dss_billno'
                TableField = 'dss_billno'
              end
              item
                DatasetField = 'dss_date'
                TableField = 'dss_date'
              end
              item
                DatasetField = 'dss_remark'
                TableField = 'dss_remark'
              end
              item
                DatasetField = 'dss_filename'
                TableField = 'dss_filename'
              end
              item
                DatasetField = 'dss_fileext'
                TableField = 'dss_fileext'
              end
              item
                DatasetField = 'dss_staff'
                TableField = 'dss_staff'
              end>
          end>
        Name = 'd_stockstate'
        Fields = <
          item
            Name = 'dss_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dss_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dss_state'
            DataType = datString
            Size = 4000
          end
          item
            Name = 'dss_billtype'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dss_billid'
            DataType = datGuid
          end
          item
            Name = 'dss_billno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dss_date'
            DataType = datDateTime
          end
          item
            Name = 'dss_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dss_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dss_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dss_staff'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_paybalanceitem'
            SQL = 
              'SELECT '#10'    dpbi_pid, dpbi_serial, dpbi_accountid, dpbi_accountn' +
              'o, '#10'    dpib_accountamt, dpbi_balance, dpbi_balance2, dpbi_amt, ' +
              #10'    dpbi_remark,dpbi_billno,dpbi_billid'#10'  FROM'#10'    d_paybalance' +
              'item'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpbi_pid'
                TableField = 'dpbi_pid'
              end
              item
                DatasetField = 'dpbi_serial'
                TableField = 'dpbi_serial'
              end
              item
                DatasetField = 'dpbi_accountid'
                TableField = 'dpbi_accountid'
              end
              item
                DatasetField = 'dpbi_accountno'
                TableField = 'dpbi_accountno'
              end
              item
                DatasetField = 'dpib_accountamt'
                TableField = 'dpib_accountamt'
              end
              item
                DatasetField = 'dpbi_balance'
                TableField = 'dpbi_balance'
              end
              item
                DatasetField = 'dpbi_balance2'
                TableField = 'dpbi_balance2'
              end
              item
                DatasetField = 'dpbi_amt'
                TableField = 'dpbi_amt'
              end
              item
                DatasetField = 'dpbi_remark'
                TableField = 'dpbi_remark'
              end
              item
                DatasetField = 'dpbi_billno'
                TableField = 'dpbi_billno'
              end
              item
                DatasetField = 'dpbi_billid'
                TableField = 'dpbi_billid'
              end>
          end>
        Name = 'd_paybalanceitem'
        Fields = <
          item
            Name = 'dpbi_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpbi_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpbi_accountid'
            DataType = datGuid
          end
          item
            Name = 'dpbi_accountno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpib_accountamt'
            DataType = datFloat
          end
          item
            Name = 'dpbi_balance'
            DataType = datFloat
          end
          item
            Name = 'dpbi_balance2'
            DataType = datFloat
          end
          item
            Name = 'dpbi_amt'
            DataType = datFloat
          end
          item
            Name = 'dpbi_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpbi_billno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpbi_billid'
            DataType = datGuid
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_paybalanceitem'
            SQL = 
              'SELECT '#10'    dpbi_pid, dpbi_serial, dpbi_accountid, dpbi_accountn' +
              'o, '#10'    dpib_accountamt, dpbi_balance, dpbi_balance2, dpbi_amt, ' +
              #10'    dpbi_remark, dpb_no,dpb_date,dpb_type,dpb_staff,dpb_osimpna' +
              'me'#10'  FROM'#10'    d_paybalanceitem left outer join d_paybalance on d' +
              'pbi_pid=dpb_id'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpbi_pid'
                TableField = 'dpbi_pid'
              end
              item
                DatasetField = 'dpbi_serial'
                TableField = 'dpbi_serial'
              end
              item
                DatasetField = 'dpbi_accountid'
                TableField = 'dpbi_accountid'
              end
              item
                DatasetField = 'dpbi_accountno'
                TableField = 'dpbi_accountno'
              end
              item
                DatasetField = 'dpib_accountamt'
                TableField = 'dpib_accountamt'
              end
              item
                DatasetField = 'dpbi_balance'
                TableField = 'dpbi_balance'
              end
              item
                DatasetField = 'dpbi_balance2'
                TableField = 'dpbi_balance2'
              end
              item
                DatasetField = 'dpbi_amt'
                TableField = 'dpbi_amt'
              end
              item
                DatasetField = 'dpbi_remark'
                TableField = 'dpbi_remark'
              end
              item
                DatasetField = 'dpb_no'
                TableField = '<unknown>'
                SQLOrigin = 'dpb_no'
              end
              item
                DatasetField = 'dpb_date'
                TableField = '<unknown>'
                SQLOrigin = 'dpb_date'
              end
              item
                DatasetField = 'dpb_type'
                TableField = '<unknown>'
                SQLOrigin = 'dpb_type'
              end
              item
                DatasetField = 'dpb_staff'
                TableField = '<unknown>'
                SQLOrigin = 'dpb_staff'
              end
              item
                DatasetField = 'dpb_osimpname'
                TableField = '<unknown>'
                SQLOrigin = 'dpb_osimpname'
              end>
          end>
        Name = 'd_paybalanceitem1'
        Fields = <
          item
            Name = 'dpbi_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpbi_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpbi_accountid'
            DataType = datGuid
          end
          item
            Name = 'dpbi_accountno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpib_accountamt'
            DataType = datFloat
          end
          item
            Name = 'dpbi_balance'
            DataType = datFloat
          end
          item
            Name = 'dpbi_balance2'
            DataType = datFloat
          end
          item
            Name = 'dpbi_amt'
            DataType = datFloat
          end
          item
            Name = 'dpbi_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpb_no'
            DataType = datString
            Size = 30
            ReadOnly = True
          end
          item
            Name = 'dpb_date'
            DataType = datDateTime
            ReadOnly = True
          end
          item
            Name = 'dpb_type'
            DataType = datString
            Size = 30
            ReadOnly = True
          end
          item
            Name = 'dpb_staff'
            DataType = datString
            Size = 30
            ReadOnly = True
          end
          item
            Name = 'dpb_osimpname'
            DataType = datString
            Size = 30
            ReadOnly = True
          end>
        ReadOnly = True
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_systemparam'
            SQL = 
              'SELECT '#10'    bsp_id, bsp_pricedecimal, bsp_amtdecimal, bsp_weight' +
              'decimal, '#10'    bsp_volumedecimal, bsp_billvisible, bsp_accountbal' +
              'ance, '#10'    bsp_quotation, bsp_pi, bsp_factoryinquire, bsp_custom' +
              'erinquire, '#10'    bsp_stock, bsp_transport, bsp_transportinquire, ' +
              'bsp_accountreceivable, '#10'    bsp_receivebalance, bsp_receiveinvoi' +
              'ce, bsp_accountpayable, '#10'    bsp_paybalance, bsp_payrequest, bsp' +
              '_feemanage, bsp_warehousein, '#10'    bsp_warehouseout, bsp_warehous' +
              'echeck,bsp_warehousetransfer,bsp_warehouseborrow,bsp_warehousere' +
              'turn,bsp_pendingproject,bsp_warehousereceive'#10'  FROM'#10'    b_system' +
              'param'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bsp_id'
                TableField = 'bsp_id'
              end
              item
                DatasetField = 'bsp_pricedecimal'
                TableField = 'bsp_pricedecimal'
              end
              item
                DatasetField = 'bsp_amtdecimal'
                TableField = 'bsp_amtdecimal'
              end
              item
                DatasetField = 'bsp_weightdecimal'
                TableField = 'bsp_weightdecimal'
              end
              item
                DatasetField = 'bsp_volumedecimal'
                TableField = 'bsp_volumedecimal'
              end
              item
                DatasetField = 'bsp_billvisible'
                TableField = 'bsp_billvisible'
              end
              item
                DatasetField = 'bsp_accountbalance'
                TableField = 'bsp_accountbalance'
              end
              item
                DatasetField = 'bsp_quotation'
                TableField = 'bsp_quotation'
              end
              item
                DatasetField = 'bsp_pi'
                TableField = 'bsp_pi'
              end
              item
                DatasetField = 'bsp_factoryinquire'
                TableField = 'bsp_factoryinquire'
              end
              item
                DatasetField = 'bsp_customerinquire'
                TableField = 'bsp_customerinquire'
              end
              item
                DatasetField = 'bsp_stock'
                TableField = 'bsp_stock'
              end
              item
                DatasetField = 'bsp_transport'
                TableField = 'bsp_transport'
              end
              item
                DatasetField = 'bsp_transportinquire'
                TableField = 'bsp_transportinquire'
              end
              item
                DatasetField = 'bsp_accountreceivable'
                TableField = 'bsp_accountreceivable'
              end
              item
                DatasetField = 'bsp_receivebalance'
                TableField = 'bsp_receivebalance'
              end
              item
                DatasetField = 'bsp_receiveinvoice'
                TableField = 'bsp_receiveinvoice'
              end
              item
                DatasetField = 'bsp_accountpayable'
                TableField = 'bsp_accountpayable'
              end
              item
                DatasetField = 'bsp_paybalance'
                TableField = 'bsp_paybalance'
              end
              item
                DatasetField = 'bsp_payrequest'
                TableField = 'bsp_payrequest'
              end
              item
                DatasetField = 'bsp_feemanage'
                TableField = 'bsp_feemanage'
              end
              item
                DatasetField = 'bsp_warehousein'
                TableField = 'bsp_warehousein'
              end
              item
                DatasetField = 'bsp_warehouseout'
                TableField = 'bsp_warehouseout'
              end
              item
                DatasetField = 'bsp_warehousecheck'
                TableField = 'bsp_warehousecheck'
              end
              item
                DatasetField = 'bsp_warehousetransfer'
                TableField = 'bsp_warehousetransfer'
              end
              item
                DatasetField = 'bsp_warehouseborrow'
                TableField = 'bsp_warehouseborrow'
              end
              item
                DatasetField = 'bsp_warehousereturn'
                TableField = 'bsp_warehousereturn'
              end
              item
                DatasetField = 'bsp_pendingproject'
                TableField = 'bsp_pendingproject'
              end
              item
                DatasetField = 'bsp_warehousereceive'
                TableField = 'bsp_warehousereceive'
              end>
          end>
        Name = 'b_systemparam'
        Fields = <
          item
            Name = 'bsp_id'
            DataType = datAutoInc
            GeneratorName = 'b_systemparam'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bsp_pricedecimal'
            DataType = datInteger
          end
          item
            Name = 'bsp_amtdecimal'
            DataType = datInteger
          end
          item
            Name = 'bsp_weightdecimal'
            DataType = datInteger
          end
          item
            Name = 'bsp_volumedecimal'
            DataType = datInteger
          end
          item
            Name = 'bsp_billvisible'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bsp_accountbalance'
            DataType = datFloat
          end
          item
            Name = 'bsp_quotation'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_pi'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_factoryinquire'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_customerinquire'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_stock'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_transport'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_transportinquire'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_accountreceivable'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_receivebalance'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_receiveinvoice'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_accountpayable'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_paybalance'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_payrequest'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_feemanage'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_warehousein'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_warehouseout'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_warehousecheck'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_warehousetransfer'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_warehouseborrow'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_warehousereturn'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_pendingproject'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bsp_warehousereceive'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_factoryinquire'
            SQL = 
              'SELECT '#10'    dfi_id, dfi_no, dfi_date, dfi_replydate, dfi_oid, df' +
              'i_oiid, '#10'    dfi_osimpname, dfi_fid, dfi_fno, dfi_fsimpname, dfi' +
              '_linkman, '#10'    dfi_ftel, dfi_ffax, dfi_mcode, dfi_rate, dfi_inqu' +
              'ireqty, '#10'    dfi_qtyestimate, dfi_desc, dfi_remark, dfi_state, d' +
              'fi_staffid, '#10'    dfi_staffiid, dfi_staff, dfi_department, dfi_cr' +
              'eatedate, '#10'    dfi_createstaff, dfi_modifystaff, dfi_modifydate,' +
              ' dfi_projectid, '#10'    dfi_projectno,dfi_tracestate,dfi_tracedate,' +
              'dfi_batchno'#10'  FROM'#10'    d_factoryinquire'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dfi_id'
                TableField = 'dfi_id'
              end
              item
                DatasetField = 'dfi_no'
                TableField = 'dfi_no'
              end
              item
                DatasetField = 'dfi_date'
                TableField = 'dfi_date'
              end
              item
                DatasetField = 'dfi_replydate'
                TableField = 'dfi_replydate'
              end
              item
                DatasetField = 'dfi_oid'
                TableField = 'dfi_oid'
              end
              item
                DatasetField = 'dfi_oiid'
                TableField = 'dfi_oiid'
              end
              item
                DatasetField = 'dfi_osimpname'
                TableField = 'dfi_osimpname'
              end
              item
                DatasetField = 'dfi_fid'
                TableField = 'dfi_fid'
              end
              item
                DatasetField = 'dfi_fno'
                TableField = 'dfi_fno'
              end
              item
                DatasetField = 'dfi_fsimpname'
                TableField = 'dfi_fsimpname'
              end
              item
                DatasetField = 'dfi_linkman'
                TableField = 'dfi_linkman'
              end
              item
                DatasetField = 'dfi_ftel'
                TableField = 'dfi_ftel'
              end
              item
                DatasetField = 'dfi_ffax'
                TableField = 'dfi_ffax'
              end
              item
                DatasetField = 'dfi_mcode'
                TableField = 'dfi_mcode'
              end
              item
                DatasetField = 'dfi_rate'
                TableField = 'dfi_rate'
              end
              item
                DatasetField = 'dfi_inquireqty'
                TableField = 'dfi_inquireqty'
              end
              item
                DatasetField = 'dfi_qtyestimate'
                TableField = 'dfi_qtyestimate'
              end
              item
                DatasetField = 'dfi_desc'
                TableField = 'dfi_desc'
              end
              item
                DatasetField = 'dfi_remark'
                TableField = 'dfi_remark'
              end
              item
                DatasetField = 'dfi_state'
                TableField = 'dfi_state'
              end
              item
                DatasetField = 'dfi_staffid'
                TableField = 'dfi_staffid'
              end
              item
                DatasetField = 'dfi_staffiid'
                TableField = 'dfi_staffiid'
              end
              item
                DatasetField = 'dfi_staff'
                TableField = 'dfi_staff'
              end
              item
                DatasetField = 'dfi_department'
                TableField = 'dfi_department'
              end
              item
                DatasetField = 'dfi_createdate'
                TableField = 'dfi_createdate'
              end
              item
                DatasetField = 'dfi_createstaff'
                TableField = 'dfi_createstaff'
              end
              item
                DatasetField = 'dfi_modifystaff'
                TableField = 'dfi_modifystaff'
              end
              item
                DatasetField = 'dfi_modifydate'
                TableField = 'dfi_modifydate'
              end
              item
                DatasetField = 'dfi_projectid'
                TableField = 'dfi_projectid'
              end
              item
                DatasetField = 'dfi_projectno'
                TableField = 'dfi_projectno'
              end
              item
                DatasetField = 'dfi_tracestate'
                TableField = 'dfi_tracestate'
              end
              item
                DatasetField = 'dfi_tracedate'
                TableField = 'dfi_tracedate'
              end
              item
                DatasetField = 'dfi_batchno'
                TableField = 'dfi_batchno'
              end>
          end>
        Name = 'd_factoryinquire'
        Fields = <
          item
            Name = 'dfi_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dfi_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dfi_date'
            DataType = datDateTime
          end
          item
            Name = 'dfi_replydate'
            DataType = datDateTime
          end
          item
            Name = 'dfi_oid'
            DataType = datGuid
          end
          item
            Name = 'dfi_oiid'
            DataType = datInteger
          end
          item
            Name = 'dfi_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_fid'
            DataType = datGuid
          end
          item
            Name = 'dfi_fno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dfi_fsimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_linkman'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_ftel'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_ffax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dfi_rate'
            DataType = datFloat
          end
          item
            Name = 'dfi_inquireqty'
            DataType = datFloat
          end
          item
            Name = 'dfi_qtyestimate'
            DataType = datFloat
          end
          item
            Name = 'dfi_desc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfi_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfi_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dfi_staffid'
            DataType = datGuid
          end
          item
            Name = 'dfi_staffiid'
            DataType = datInteger
          end
          item
            Name = 'dfi_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dfi_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dfi_projectid'
            DataType = datGuid
          end
          item
            Name = 'dfi_projectno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfi_tracestate'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfi_tracedate'
            DataType = datDateTime
          end
          item
            Name = 'dfi_batchno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_pi'
            SQL = 
              'SELECT '#10'    dp_id, dp_projectid, dp_projectno, dp_qno, dp_qid, '#10 +
              '    dp_no, dp_date, dp_oid, dp_oiid, dp_osimpname, dp_cid, '#10'    ' +
              'dp_cno, dp_csimpname, dp_ccontact, dp_cfax, dp_staff, '#10'    dp_st' +
              'affid, dp_staffiid, dp_department, dp_priceterm, '#10'    dp_payment' +
              'mode, dp_shipway, dp_mcode, dp_rate, dp_amt, '#10'    dp_totalgw, dp' +
              '_totalqty, dp_productname, dp_checkstate, '#10'    dp_state, dp_colo' +
              'r, dp_deliarea, dp_delidate, dp_remark, '#10'    dp_stockgen, dp_cre' +
              'atestaff, dp_createdate, dp_modifystaff, '#10'    dp_modifydate, dp_' +
              'checkstaff, dp_checkdate, dp_checkrequeststaff, '#10'    dp_checkreq' +
              'uestid, dp_profit, dp_outqty, dp_productcountry, dp_batchno,dp_r' +
              'efno,dp_cpino,'#10'    dp_followstate, dp_followdate, dp_type, dp_co' +
              'mmisionrate,dp_commision,dp_sellamtrmb,dp_buyamtrmb'#10'  FROM'#10'    d' +
              '_pi'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dp_id'
                TableField = 'dp_id'
              end
              item
                DatasetField = 'dp_projectid'
                TableField = 'dp_projectid'
              end
              item
                DatasetField = 'dp_projectno'
                TableField = 'dp_projectno'
              end
              item
                DatasetField = 'dp_qno'
                TableField = 'dp_qno'
              end
              item
                DatasetField = 'dp_qid'
                TableField = 'dp_qid'
              end
              item
                DatasetField = 'dp_no'
                TableField = 'dp_no'
              end
              item
                DatasetField = 'dp_date'
                TableField = 'dp_date'
              end
              item
                DatasetField = 'dp_oid'
                TableField = 'dp_oid'
              end
              item
                DatasetField = 'dp_oiid'
                TableField = 'dp_oiid'
              end
              item
                DatasetField = 'dp_osimpname'
                TableField = 'dp_osimpname'
              end
              item
                DatasetField = 'dp_cid'
                TableField = 'dp_cid'
              end
              item
                DatasetField = 'dp_cno'
                TableField = 'dp_cno'
              end
              item
                DatasetField = 'dp_csimpname'
                TableField = 'dp_csimpname'
              end
              item
                DatasetField = 'dp_ccontact'
                TableField = 'dp_ccontact'
              end
              item
                DatasetField = 'dp_cfax'
                TableField = 'dp_cfax'
              end
              item
                DatasetField = 'dp_staff'
                TableField = 'dp_staff'
              end
              item
                DatasetField = 'dp_staffid'
                TableField = 'dp_staffid'
              end
              item
                DatasetField = 'dp_staffiid'
                TableField = 'dp_staffiid'
              end
              item
                DatasetField = 'dp_department'
                TableField = 'dp_department'
              end
              item
                DatasetField = 'dp_priceterm'
                TableField = 'dp_priceterm'
              end
              item
                DatasetField = 'dp_paymentmode'
                TableField = 'dp_paymentmode'
              end
              item
                DatasetField = 'dp_shipway'
                TableField = 'dp_shipway'
              end
              item
                DatasetField = 'dp_mcode'
                TableField = 'dp_mcode'
              end
              item
                DatasetField = 'dp_rate'
                TableField = 'dp_rate'
              end
              item
                DatasetField = 'dp_amt'
                TableField = 'dp_amt'
              end
              item
                DatasetField = 'dp_totalgw'
                TableField = 'dp_totalgw'
              end
              item
                DatasetField = 'dp_totalqty'
                TableField = 'dp_totalqty'
              end
              item
                DatasetField = 'dp_productname'
                TableField = 'dp_productname'
              end
              item
                DatasetField = 'dp_checkstate'
                TableField = 'dp_checkstate'
              end
              item
                DatasetField = 'dp_state'
                TableField = 'dp_state'
              end
              item
                DatasetField = 'dp_color'
                TableField = 'dp_color'
              end
              item
                DatasetField = 'dp_deliarea'
                TableField = 'dp_deliarea'
              end
              item
                DatasetField = 'dp_delidate'
                TableField = 'dp_delidate'
              end
              item
                DatasetField = 'dp_remark'
                TableField = 'dp_remark'
              end
              item
                DatasetField = 'dp_stockgen'
                TableField = 'dp_stockgen'
              end
              item
                DatasetField = 'dp_createstaff'
                TableField = 'dp_createstaff'
              end
              item
                DatasetField = 'dp_createdate'
                TableField = 'dp_createdate'
              end
              item
                DatasetField = 'dp_modifystaff'
                TableField = 'dp_modifystaff'
              end
              item
                DatasetField = 'dp_modifydate'
                TableField = 'dp_modifydate'
              end
              item
                DatasetField = 'dp_checkstaff'
                TableField = 'dp_checkstaff'
              end
              item
                DatasetField = 'dp_checkdate'
                TableField = 'dp_checkdate'
              end
              item
                DatasetField = 'dp_checkrequeststaff'
                TableField = 'dp_checkrequeststaff'
              end
              item
                DatasetField = 'dp_checkrequestid'
                TableField = 'dp_checkrequestid'
              end
              item
                DatasetField = 'dp_profit'
                TableField = 'dp_profit'
              end
              item
                DatasetField = 'dp_outqty'
                TableField = 'dp_outqty'
              end
              item
                DatasetField = 'dp_productcountry'
                TableField = 'dp_productcountry'
              end
              item
                DatasetField = 'dp_followstate'
                TableField = 'dp_followstate'
              end
              item
                DatasetField = 'dp_followdate'
                TableField = 'dp_followdate'
              end
              item
                DatasetField = 'dp_type'
                TableField = 'dp_type'
              end
              item
                DatasetField = 'dp_commisionrate'
                TableField = 'dp_commisionrate'
              end
              item
                DatasetField = 'dp_commision'
                TableField = 'dp_commision'
              end
              item
                DatasetField = 'dp_sellamtrmb'
                TableField = 'dp_sellamtrmb'
              end
              item
                DatasetField = 'dp_buyamtrmb'
                TableField = 'dp_buyamtrmb'
              end
              item
                DatasetField = 'dp_batchno'
                TableField = 'dp_batchno'
              end
              item
                DatasetField = 'dp_refno'
                TableField = 'dp_refno'
              end
              item
                DatasetField = 'dp_cpino'
                TableField = 'dp_cpino'
              end>
          end>
        Name = 'd_pi'
        Fields = <
          item
            Name = 'dp_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dp_projectid'
            DataType = datGuid
          end
          item
            Name = 'dp_projectno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_qno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_qid'
            DataType = datGuid
          end
          item
            Name = 'dp_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dp_date'
            DataType = datDateTime
          end
          item
            Name = 'dp_oid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dp_oiid'
            DataType = datInteger
          end
          item
            Name = 'dp_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_cid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dp_cno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dp_csimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_ccontact'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_cfax'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_staffid'
            DataType = datGuid
          end
          item
            Name = 'dp_staffiid'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_priceterm'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_paymentmode'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dp_shipway'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dp_rate'
            DataType = datFloat
          end
          item
            Name = 'dp_amt'
            DataType = datFloat
          end
          item
            Name = 'dp_totalgw'
            DataType = datFloat
          end
          item
            Name = 'dp_totalqty'
            DataType = datFloat
          end
          item
            Name = 'dp_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dp_checkstate'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dp_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_color'
            DataType = datInteger
          end
          item
            Name = 'dp_deliarea'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_delidate'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dp_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dp_stockgen'
            DataType = datBoolean
          end
          item
            Name = 'dp_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dp_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dp_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dp_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dp_profit'
            DataType = datFloat
          end
          item
            Name = 'dp_outqty'
            DataType = datFloat
          end
          item
            Name = 'dp_productcountry'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_batchno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_refno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_cpino'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_followstate'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dp_followdate'
            DataType = datDateTime
          end
          item
            Name = 'dp_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dp_commisionrate'
            DataType = datFloat
          end
          item
            Name = 'dp_commision'
            DataType = datFloat
          end
          item
            Name = 'dp_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dp_buyamtrmb'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_employeeachieve'
            SQL = 
              'SELECT '#10'    dea_id, dea_employee, dea_month, dea_date, dea_goal,' +
              ' '#10'    dea_goaldesc, dea_achieve, dea_grade, dea_gradedesc, '#10'    ' +
              'dea_gradedecidestaff, dea_remark, dea_createstaff, '#10'    dea_crea' +
              'tedate, dea_modifystaff, dea_modifydate'#10'  FROM'#10'    d_employeeach' +
              'ieve'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dea_id'
                TableField = 'dea_id'
              end
              item
                DatasetField = 'dea_employee'
                TableField = 'dea_employee'
              end
              item
                DatasetField = 'dea_month'
                TableField = 'dea_month'
              end
              item
                DatasetField = 'dea_date'
                TableField = 'dea_date'
              end
              item
                DatasetField = 'dea_goal'
                TableField = 'dea_goal'
              end
              item
                DatasetField = 'dea_goaldesc'
                TableField = 'dea_goaldesc'
              end
              item
                DatasetField = 'dea_achieve'
                TableField = 'dea_achieve'
              end
              item
                DatasetField = 'dea_grade'
                TableField = 'dea_grade'
              end
              item
                DatasetField = 'dea_gradedesc'
                TableField = 'dea_gradedesc'
              end
              item
                DatasetField = 'dea_gradedecidestaff'
                TableField = 'dea_gradedecidestaff'
              end
              item
                DatasetField = 'dea_remark'
                TableField = 'dea_remark'
              end
              item
                DatasetField = 'dea_createstaff'
                TableField = 'dea_createstaff'
              end
              item
                DatasetField = 'dea_createdate'
                TableField = 'dea_createdate'
              end
              item
                DatasetField = 'dea_modifystaff'
                TableField = 'dea_modifystaff'
              end
              item
                DatasetField = 'dea_modifydate'
                TableField = 'dea_modifydate'
              end>
          end>
        Name = 'd_employeeachieve'
        Fields = <
          item
            Name = 'dea_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dea_employee'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dea_month'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dea_date'
            DataType = datDateTime
          end
          item
            Name = 'dea_goal'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dea_goaldesc'
            DataType = datString
            Size = 1000
          end
          item
            Name = 'dea_achieve'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dea_grade'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dea_gradedesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dea_gradedecidestaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dea_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dea_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dea_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dea_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dea_modifydate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_employeeregister'
            SQL = 
              'SELECT '#10'    der_id, der_staff, der_staffid, der_staffiid, der_em' +
              'ployee, '#10'    der_department, der_datestart, der_datestart2, der_' +
              'dateend, '#10'    der_dateend2, der_type, der_desc, der_remark, der_' +
              'createstaff, '#10'    der_createdate, der_modifystaff, der_modifydat' +
              'e'#10'  FROM'#10'    d_employeeregister'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'der_id'
                TableField = 'der_id'
              end
              item
                DatasetField = 'der_staff'
                TableField = 'der_staff'
              end
              item
                DatasetField = 'der_staffid'
                TableField = 'der_staffid'
              end
              item
                DatasetField = 'der_staffiid'
                TableField = 'der_staffiid'
              end
              item
                DatasetField = 'der_employee'
                TableField = 'der_employee'
              end
              item
                DatasetField = 'der_department'
                TableField = 'der_department'
              end
              item
                DatasetField = 'der_datestart'
                TableField = 'der_datestart'
              end
              item
                DatasetField = 'der_datestart2'
                TableField = 'der_datestart2'
              end
              item
                DatasetField = 'der_dateend'
                TableField = 'der_dateend'
              end
              item
                DatasetField = 'der_dateend2'
                TableField = 'der_dateend2'
              end
              item
                DatasetField = 'der_type'
                TableField = 'der_type'
              end
              item
                DatasetField = 'der_desc'
                TableField = 'der_desc'
              end
              item
                DatasetField = 'der_remark'
                TableField = 'der_remark'
              end
              item
                DatasetField = 'der_createstaff'
                TableField = 'der_createstaff'
              end
              item
                DatasetField = 'der_createdate'
                TableField = 'der_createdate'
              end
              item
                DatasetField = 'der_modifystaff'
                TableField = 'der_modifystaff'
              end
              item
                DatasetField = 'der_modifydate'
                TableField = 'der_modifydate'
              end>
          end>
        Name = 'd_employeeregister'
        Fields = <
          item
            Name = 'der_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'der_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'der_staffid'
            DataType = datGuid
          end
          item
            Name = 'der_staffiid'
            DataType = datInteger
          end
          item
            Name = 'der_employee'
            DataType = datString
            Size = 30
          end
          item
            Name = 'der_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'der_datestart'
            DataType = datDateTime
          end
          item
            Name = 'der_datestart2'
            DataType = datDateTime
          end
          item
            Name = 'der_dateend'
            DataType = datDateTime
          end
          item
            Name = 'der_dateend2'
            DataType = datDateTime
          end
          item
            Name = 'der_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'der_desc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'der_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'der_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'der_createdate'
            DataType = datDateTime
          end
          item
            Name = 'der_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'der_modifydate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_feeobject'
            SQL = 
              'SELECT'#10'    bfo_id, bfo_name, bfo_classid, bfo_valid, bfoc_name'#10' ' +
              ' FROM'#10'    b_feeobject left outer join b_feeobjectclass on bfo_cl' +
              'assid=bfoc_id'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bfo_id'
                TableField = 'bfo_id'
              end
              item
                DatasetField = 'bfo_name'
                TableField = 'bfo_name'
              end
              item
                DatasetField = 'bfo_classid'
                TableField = 'bfo_classid'
              end
              item
                DatasetField = 'bfo_valid'
                TableField = 'bfo_valid'
              end
              item
                DatasetField = 'bfoc_name'
                TableField = '<unknown>'
                SQLOrigin = 'bfoc_name'
              end>
          end>
        Name = 'b_feeobjectconfig'
        Fields = <
          item
            Name = 'bfo_id'
            DataType = datAutoInc
            GeneratorName = 'b_feeobject'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bfo_name'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bfo_classid'
            DataType = datInteger
          end
          item
            Name = 'bfo_valid'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bfoc_name'
            DataType = datString
            Size = 30
            ReadOnly = True
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_transport'
            SQL = 
              'SELECT '#10'    dt_id, dt_no, dt_pids, dt_pnos, dt_dhsids, dt_dhsnos' +
              ', '#10'    dt_productname, dt_qty, dt_volume, dt_packingqty, dt_gw, ' +
              #10'    dt_packingmaterial, dt_shipfrom, dt_shipto, dt_trademode, '#10 +
              '    dt_priceterm, dt_shipway, dt_transportinsurance, dt_insuranc' +
              'evalue, '#10'    dt_otherrequest, dt_createstaff, dt_createdate, dt_' +
              'modifystaff, '#10'    dt_modifydate, dt_oid, dt_osimpname, dt_depart' +
              'ment, '#10'    dt_staff, dt_staffid, dt_staffiid, dt_remark, dt_date' +
              ', '#10'    dt_torder, dt_cstocknos, dt_ccompany, dt_caddress, '#10'    d' +
              't_ccontact, dt_ccontactinfo, dt_cbldatedesc, dt_tpinos, '#10'    dt_' +
              'tcompany, dt_taddress, dt_tcontact, dt_tcontactinfo, '#10'    dt_tou' +
              'tdatedesc, dt_totherrequest, dt_feeesti, dt_acceptdate, '#10'    dt_' +
              'finishdate, dt_tracestate, dt_tracedate, dt_state,dt_insurancemc' +
              'ode,'#10'    dt_oiid,dt_baoxianmcode,dt_baoxianvalue,dt_volumeunit,d' +
              't_packingvolume'#10'  FROM'#10'    d_transport'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dt_id'
                TableField = 'dt_id'
              end
              item
                DatasetField = 'dt_no'
                TableField = 'dt_no'
              end
              item
                DatasetField = 'dt_pids'
                TableField = 'dt_pids'
              end
              item
                DatasetField = 'dt_pnos'
                TableField = 'dt_pnos'
              end
              item
                DatasetField = 'dt_dhsids'
                TableField = 'dt_dhsids'
              end
              item
                DatasetField = 'dt_dhsnos'
                TableField = 'dt_dhsnos'
              end
              item
                DatasetField = 'dt_productname'
                TableField = 'dt_productname'
              end
              item
                DatasetField = 'dt_qty'
                TableField = 'dt_qty'
              end
              item
                DatasetField = 'dt_volume'
                TableField = 'dt_volume'
              end
              item
                DatasetField = 'dt_packingqty'
                TableField = 'dt_packingqty'
              end
              item
                DatasetField = 'dt_gw'
                TableField = 'dt_gw'
              end
              item
                DatasetField = 'dt_packingmaterial'
                TableField = 'dt_packingmaterial'
              end
              item
                DatasetField = 'dt_shipfrom'
                TableField = 'dt_shipfrom'
              end
              item
                DatasetField = 'dt_shipto'
                TableField = 'dt_shipto'
              end
              item
                DatasetField = 'dt_trademode'
                TableField = 'dt_trademode'
              end
              item
                DatasetField = 'dt_priceterm'
                TableField = 'dt_priceterm'
              end
              item
                DatasetField = 'dt_shipway'
                TableField = 'dt_shipway'
              end
              item
                DatasetField = 'dt_transportinsurance'
                TableField = 'dt_transportinsurance'
              end
              item
                DatasetField = 'dt_insurancevalue'
                TableField = 'dt_insurancevalue'
              end
              item
                DatasetField = 'dt_otherrequest'
                TableField = 'dt_otherrequest'
              end
              item
                DatasetField = 'dt_createstaff'
                TableField = 'dt_createstaff'
              end
              item
                DatasetField = 'dt_createdate'
                TableField = 'dt_createdate'
              end
              item
                DatasetField = 'dt_modifystaff'
                TableField = 'dt_modifystaff'
              end
              item
                DatasetField = 'dt_modifydate'
                TableField = 'dt_modifydate'
              end
              item
                DatasetField = 'dt_oid'
                TableField = 'dt_oid'
              end
              item
                DatasetField = 'dt_osimpname'
                TableField = 'dt_osimpname'
              end
              item
                DatasetField = 'dt_department'
                TableField = 'dt_department'
              end
              item
                DatasetField = 'dt_staff'
                TableField = 'dt_staff'
              end
              item
                DatasetField = 'dt_staffid'
                TableField = 'dt_staffid'
              end
              item
                DatasetField = 'dt_staffiid'
                TableField = 'dt_staffiid'
              end
              item
                DatasetField = 'dt_remark'
                TableField = 'dt_remark'
              end
              item
                DatasetField = 'dt_date'
                TableField = 'dt_date'
              end
              item
                DatasetField = 'dt_torder'
                TableField = 'dt_torder'
              end
              item
                DatasetField = 'dt_cstocknos'
                TableField = 'dt_cstocknos'
              end
              item
                DatasetField = 'dt_ccompany'
                TableField = 'dt_ccompany'
              end
              item
                DatasetField = 'dt_caddress'
                TableField = 'dt_caddress'
              end
              item
                DatasetField = 'dt_ccontact'
                TableField = 'dt_ccontact'
              end
              item
                DatasetField = 'dt_ccontactinfo'
                TableField = 'dt_ccontactinfo'
              end
              item
                DatasetField = 'dt_cbldatedesc'
                TableField = 'dt_cbldatedesc'
              end
              item
                DatasetField = 'dt_tpinos'
                TableField = 'dt_tpinos'
              end
              item
                DatasetField = 'dt_tcompany'
                TableField = 'dt_tcompany'
              end
              item
                DatasetField = 'dt_taddress'
                TableField = 'dt_taddress'
              end
              item
                DatasetField = 'dt_tcontact'
                TableField = 'dt_tcontact'
              end
              item
                DatasetField = 'dt_tcontactinfo'
                TableField = 'dt_tcontactinfo'
              end
              item
                DatasetField = 'dt_toutdatedesc'
                TableField = 'dt_toutdatedesc'
              end
              item
                DatasetField = 'dt_totherrequest'
                TableField = 'dt_totherrequest'
              end
              item
                DatasetField = 'dt_feeesti'
                TableField = 'dt_feeesti'
              end
              item
                DatasetField = 'dt_acceptdate'
                TableField = 'dt_acceptdate'
              end
              item
                DatasetField = 'dt_finishdate'
                TableField = 'dt_finishdate'
              end
              item
                DatasetField = 'dt_tracestate'
                TableField = 'dt_tracestate'
              end
              item
                DatasetField = 'dt_tracedate'
                TableField = 'dt_tracedate'
              end
              item
                DatasetField = 'dt_state'
                TableField = 'dt_state'
              end
              item
                DatasetField = 'dt_oiid'
                TableField = 'dt_oiid'
              end
              item
                DatasetField = 'dt_insurancemcode'
                TableField = 'dt_insurancemcode'
              end
              item
                DatasetField = 'dt_baoxianmcode'
                TableField = 'dt_baoxianmcode'
              end
              item
                DatasetField = 'dt_baoxianvalue'
                TableField = 'dt_baoxianvalue'
              end
              item
                DatasetField = 'dt_volumeunit'
                TableField = 'dt_volumeunit'
              end
              item
                DatasetField = 'dt_packingvolume'
                TableField = 'dt_packingvolume'
              end>
          end>
        Name = 'd_transport'
        Fields = <
          item
            Name = 'dt_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dt_no'
            DataType = datString
            Size = 20
            Required = True
          end
          item
            Name = 'dt_pids'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dt_pnos'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dt_dhsids'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dt_dhsnos'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dt_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dt_qty'
            DataType = datFloat
          end
          item
            Name = 'dt_volume'
            DataType = datFloat
          end
          item
            Name = 'dt_packingqty'
            DataType = datFloat
          end
          item
            Name = 'dt_gw'
            DataType = datFloat
          end
          item
            Name = 'dt_packingmaterial'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_shipfrom'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_shipto'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_trademode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_priceterm'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_shipway'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_transportinsurance'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_insurancevalue'
            DataType = datFloat
          end
          item
            Name = 'dt_otherrequest'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dt_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dt_oid'
            DataType = datGuid
          end
          item
            Name = 'dt_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_staffid'
            DataType = datGuid
          end
          item
            Name = 'dt_staffiid'
            DataType = datInteger
          end
          item
            Name = 'dt_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dt_date'
            DataType = datDateTime
          end
          item
            Name = 'dt_torder'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_cstocknos'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dt_ccompany'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dt_caddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dt_ccontact'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_ccontactinfo'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dt_cbldatedesc'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dt_tpinos'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dt_tcompany'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dt_taddress'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dt_tcontact'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_tcontactinfo'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dt_toutdatedesc'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dt_totherrequest'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dt_feeesti'
            DataType = datFloat
          end
          item
            Name = 'dt_acceptdate'
            DataType = datDateTime
          end
          item
            Name = 'dt_finishdate'
            DataType = datDateTime
          end
          item
            Name = 'dt_tracestate'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dt_tracedate'
            DataType = datDateTime
          end
          item
            Name = 'dt_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_insurancemcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dt_oiid'
            DataType = datInteger
          end
          item
            Name = 'dt_baoxianmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dt_baoxianvalue'
            DataType = datFloat
          end
          item
            Name = 'dt_volumeunit'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dt_packingvolume'
            DataType = datString
            Size = 60
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_transportinquireitem'
            SQL = 
              'SELECT '#10'    dtii_pid, dtii_serial, dti_toid, dti_tosimpname, dti' +
              '_feeoversea, '#10'    dti_feehome, dti_feemain, dti_remark, dti_docd' +
              'esc'#10'  FROM'#10'    d_transportinquireitem'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dtii_pid'
                TableField = 'dtii_pid'
              end
              item
                DatasetField = 'dtii_serial'
                TableField = 'dtii_serial'
              end
              item
                DatasetField = 'dti_toid'
                TableField = 'dti_toid'
              end
              item
                DatasetField = 'dti_tosimpname'
                TableField = 'dti_tosimpname'
              end
              item
                DatasetField = 'dti_feeoversea'
                TableField = 'dti_feeoversea'
              end
              item
                DatasetField = 'dti_feehome'
                TableField = 'dti_feehome'
              end
              item
                DatasetField = 'dti_feemain'
                TableField = 'dti_feemain'
              end
              item
                DatasetField = 'dti_remark'
                TableField = 'dti_remark'
              end
              item
                DatasetField = 'dti_docdesc'
                TableField = 'dti_docdesc'
              end>
          end>
        Name = 'd_transportinquireitem'
        Fields = <
          item
            Name = 'dtii_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dtii_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dti_toid'
            DataType = datGuid
          end
          item
            Name = 'dti_tosimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_feeoversea'
            DataType = datFloat
          end
          item
            Name = 'dti_feehome'
            DataType = datFloat
          end
          item
            Name = 'dti_feemain'
            DataType = datFloat
          end
          item
            Name = 'dti_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dti_docdesc'
            DataType = datString
            Size = 60
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_transporttrace'
            SQL = 
              'SELECT '#10'    dtt_pid, dtt_serial, dtt_content, dtt_date, dtt_rema' +
              'rk'#10'  FROM'#10'    d_transporttrace'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dtt_pid'
                TableField = 'dtt_pid'
              end
              item
                DatasetField = 'dtt_serial'
                TableField = 'dtt_serial'
              end
              item
                DatasetField = 'dtt_content'
                TableField = 'dtt_content'
              end
              item
                DatasetField = 'dtt_date'
                TableField = 'dtt_date'
              end
              item
                DatasetField = 'dtt_remark'
                TableField = 'dtt_remark'
              end>
          end>
        Name = 'd_transporttrace'
        Fields = <
          item
            Name = 'dtt_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dtt_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dtt_content'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dtt_date'
            DataType = datDateTime
          end
          item
            Name = 'dtt_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_transportinquire'
            SQL = 
              'SELECT '#10'    dti_id, dti_tid, dti_tno, dti_no, dti_date, dti_proj' +
              'ectnos, '#10'    dti_snos, dti_productname, dti_qty, dti_packingqty,' +
              ' '#10'    dti_gw, dti_vol, dti_shipfrom, dti_shipto, dti_delidate, '#10 +
              '    dti_shipway, dti_priceterm, dti_customselect, dti_packingdes' +
              'c, '#10'    dti_tosimpname, dti_toid, dti_reason, dti_remark, dti_oi' +
              'id, '#10'    dti_oid, dti_osimpname, dti_staff, dti_staffid, dti_dep' +
              'artment, '#10'    dti_checkstate, dti_createstaff, dti_createdate, d' +
              'ti_modifystaff, '#10'    dti_modifydate'#10'  FROM'#10'    d_transportinquir' +
              'e'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dti_id'
                TableField = 'dti_id'
              end
              item
                DatasetField = 'dti_tid'
                TableField = 'dti_tid'
              end
              item
                DatasetField = 'dti_tno'
                TableField = 'dti_tno'
              end
              item
                DatasetField = 'dti_no'
                TableField = 'dti_no'
              end
              item
                DatasetField = 'dti_date'
                TableField = 'dti_date'
              end
              item
                DatasetField = 'dti_projectnos'
                TableField = 'dti_projectnos'
              end
              item
                DatasetField = 'dti_snos'
                TableField = 'dti_snos'
              end
              item
                DatasetField = 'dti_productname'
                TableField = 'dti_productname'
              end
              item
                DatasetField = 'dti_qty'
                TableField = 'dti_qty'
              end
              item
                DatasetField = 'dti_packingqty'
                TableField = 'dti_packingqty'
              end
              item
                DatasetField = 'dti_gw'
                TableField = 'dti_gw'
              end
              item
                DatasetField = 'dti_vol'
                TableField = 'dti_vol'
              end
              item
                DatasetField = 'dti_shipfrom'
                TableField = 'dti_shipfrom'
              end
              item
                DatasetField = 'dti_shipto'
                TableField = 'dti_shipto'
              end
              item
                DatasetField = 'dti_delidate'
                TableField = 'dti_delidate'
              end
              item
                DatasetField = 'dti_shipway'
                TableField = 'dti_shipway'
              end
              item
                DatasetField = 'dti_priceterm'
                TableField = 'dti_priceterm'
              end
              item
                DatasetField = 'dti_customselect'
                TableField = 'dti_customselect'
              end
              item
                DatasetField = 'dti_packingdesc'
                TableField = 'dti_packingdesc'
              end
              item
                DatasetField = 'dti_tosimpname'
                TableField = 'dti_tosimpname'
              end
              item
                DatasetField = 'dti_toid'
                TableField = 'dti_toid'
              end
              item
                DatasetField = 'dti_reason'
                TableField = 'dti_reason'
              end
              item
                DatasetField = 'dti_remark'
                TableField = 'dti_remark'
              end
              item
                DatasetField = 'dti_oiid'
                TableField = 'dti_oiid'
              end
              item
                DatasetField = 'dti_oid'
                TableField = 'dti_oid'
              end
              item
                DatasetField = 'dti_osimpname'
                TableField = 'dti_osimpname'
              end
              item
                DatasetField = 'dti_staff'
                TableField = 'dti_staff'
              end
              item
                DatasetField = 'dti_staffid'
                TableField = 'dti_staffid'
              end
              item
                DatasetField = 'dti_department'
                TableField = 'dti_department'
              end
              item
                DatasetField = 'dti_checkstate'
                TableField = 'dti_checkstate'
              end
              item
                DatasetField = 'dti_createstaff'
                TableField = 'dti_createstaff'
              end
              item
                DatasetField = 'dti_createdate'
                TableField = 'dti_createdate'
              end
              item
                DatasetField = 'dti_modifystaff'
                TableField = 'dti_modifystaff'
              end
              item
                DatasetField = 'dti_modifydate'
                TableField = 'dti_modifydate'
              end>
          end>
        Name = 'd_transportinquire'
        Fields = <
          item
            Name = 'dti_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dti_tid'
            DataType = datGuid
          end
          item
            Name = 'dti_tno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_date'
            DataType = datDateTime
          end
          item
            Name = 'dti_projectnos'
            DataType = datString
            Size = 300
          end
          item
            Name = 'dti_snos'
            DataType = datString
            Size = 300
          end
          item
            Name = 'dti_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dti_qty'
            DataType = datFloat
          end
          item
            Name = 'dti_packingqty'
            DataType = datFloat
          end
          item
            Name = 'dti_gw'
            DataType = datFloat
          end
          item
            Name = 'dti_vol'
            DataType = datFloat
          end
          item
            Name = 'dti_shipfrom'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_shipto'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_delidate'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dti_shipway'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_priceterm'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_customselect'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_packingdesc'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dti_tosimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_toid'
            DataType = datGuid
          end
          item
            Name = 'dti_reason'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dti_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dti_oiid'
            DataType = datInteger
          end
          item
            Name = 'dti_oid'
            DataType = datGuid
          end
          item
            Name = 'dti_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_staffid'
            DataType = datGuid
          end
          item
            Name = 'dti_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_checkstate'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dti_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dti_modifydate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousein'
            SQL = 
              'SELECT '#10'    dwhi_id, dwhi_no, dwhi_date, dwhi_whid, dwhi_whname,' +
              ' '#10'    dwhi_whstaff, dwhi_sid, dwhi_sno, dwhi_fid, dwhi_fno, '#10'   ' +
              ' dwhi_fname, dwhi_createstaff, dwhi_createdate, dwhi_modifystaff' +
              ', '#10'    dwhi_modifydate, dwhi_qty, dwhi_amt, dwhi_remark, dwhi_ch' +
              'eckrequeststaff, '#10'    dwhi_checkrequestid, dwhi_checkstaff, dwhi' +
              '_checkdate, '#10'    dwhi_state, dwhi_type, dwhi_outdate, dwhi_oid, ' +
              'dwhi_osimpname,dwhi_saleobject,'#10'    dwhi_oiid, dwhi_buymcode, dw' +
              'hi_buyrate, dwhi_buyamt, dwhi_accountid,dwhi_projectid,dwhi_proj' +
              'ectno'#10'  FROM'#10'    d_warehousein'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwhi_id'
                TableField = 'dwhi_id'
              end
              item
                DatasetField = 'dwhi_no'
                TableField = 'dwhi_no'
              end
              item
                DatasetField = 'dwhi_date'
                TableField = 'dwhi_date'
              end
              item
                DatasetField = 'dwhi_whid'
                TableField = 'dwhi_whid'
              end
              item
                DatasetField = 'dwhi_whname'
                TableField = 'dwhi_whname'
              end
              item
                DatasetField = 'dwhi_whstaff'
                TableField = 'dwhi_whstaff'
              end
              item
                DatasetField = 'dwhi_sid'
                TableField = 'dwhi_sid'
              end
              item
                DatasetField = 'dwhi_sno'
                TableField = 'dwhi_sno'
              end
              item
                DatasetField = 'dwhi_fid'
                TableField = 'dwhi_fid'
              end
              item
                DatasetField = 'dwhi_fno'
                TableField = 'dwhi_fno'
              end
              item
                DatasetField = 'dwhi_fname'
                TableField = 'dwhi_fname'
              end
              item
                DatasetField = 'dwhi_createstaff'
                TableField = 'dwhi_createstaff'
              end
              item
                DatasetField = 'dwhi_createdate'
                TableField = 'dwhi_createdate'
              end
              item
                DatasetField = 'dwhi_modifystaff'
                TableField = 'dwhi_modifystaff'
              end
              item
                DatasetField = 'dwhi_modifydate'
                TableField = 'dwhi_modifydate'
              end
              item
                DatasetField = 'dwhi_qty'
                TableField = 'dwhi_qty'
              end
              item
                DatasetField = 'dwhi_amt'
                TableField = 'dwhi_amt'
              end
              item
                DatasetField = 'dwhi_remark'
                TableField = 'dwhi_remark'
              end
              item
                DatasetField = 'dwhi_checkrequeststaff'
                TableField = 'dwhi_checkrequeststaff'
              end
              item
                DatasetField = 'dwhi_checkrequestid'
                TableField = 'dwhi_checkrequestid'
              end
              item
                DatasetField = 'dwhi_checkstaff'
                TableField = 'dwhi_checkstaff'
              end
              item
                DatasetField = 'dwhi_checkdate'
                TableField = 'dwhi_checkdate'
              end
              item
                DatasetField = 'dwhi_state'
                TableField = 'dwhi_state'
              end
              item
                DatasetField = 'dwhi_type'
                TableField = 'dwhi_type'
              end
              item
                DatasetField = 'dwhi_outdate'
                TableField = 'dwhi_outdate'
              end
              item
                DatasetField = 'dwhi_oid'
                TableField = 'dwhi_oid'
              end
              item
                DatasetField = 'dwhi_osimpname'
                TableField = 'dwhi_osimpname'
              end
              item
                DatasetField = 'dwhi_oiid'
                TableField = 'dwhi_oiid'
              end
              item
                DatasetField = 'dwhi_buymcode'
                TableField = 'dwhi_buymcode'
              end
              item
                DatasetField = 'dwhi_buyrate'
                TableField = 'dwhi_buyrate'
              end
              item
                DatasetField = 'dwhi_buyamt'
                TableField = 'dwhi_buyamt'
              end
              item
                DatasetField = 'dwhi_accountid'
                TableField = 'dwhi_accountid'
              end
              item
                DatasetField = 'dwhi_projectid'
                TableField = 'dwhi_projectid'
              end
              item
                DatasetField = 'dwhi_projectno'
                TableField = 'dwhi_projectno'
              end
              item
                DatasetField = 'dwhi_saleobject'
                TableField = 'dwhi_saleobject'
              end>
          end>
        Name = 'd_warehousein'
        Fields = <
          item
            Name = 'dwhi_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwhi_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhi_date'
            DataType = datDateTime
          end
          item
            Name = 'dwhi_whid'
            DataType = datGuid
          end
          item
            Name = 'dwhi_whname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhi_whstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhi_sid'
            DataType = datGuid
          end
          item
            Name = 'dwhi_sno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhi_fid'
            DataType = datGuid
          end
          item
            Name = 'dwhi_fno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhi_fname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhi_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhi_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhi_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhi_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dwhi_qty'
            DataType = datFloat
          end
          item
            Name = 'dwhi_amt'
            DataType = datFloat
          end
          item
            Name = 'dwhi_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dwhi_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhi_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dwhi_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhi_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhi_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhi_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhi_outdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhi_oid'
            DataType = datGuid
          end
          item
            Name = 'dwhi_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhi_saleobject'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dwhi_oiid'
            DataType = datInteger
          end
          item
            Name = 'dwhi_buymcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwhi_buyrate'
            DataType = datFloat
          end
          item
            Name = 'dwhi_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dwhi_accountid'
            DataType = datGuid
          end
          item
            Name = 'dwhi_projectid'
            DataType = datGuid
          end
          item
            Name = 'dwhi_projectno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouseinitem'
            SQL = 
              'SELECT '#10'    dwii_whiid, dwii_serial, dwii_productid, dwii_produc' +
              'tno, '#10'    dwii_productrealno, dwii_productname, dwii_productcnna' +
              'me, '#10'    dwii_productenname, dwii_productdesc, dwii_sellmcode, '#10 +
              '    dwii_sellrate, dwii_sellprice, dwii_sellamt, dwii_sellamtrmb' +
              ', '#10'    dwii_gw, dwii_gwamt, dwii_qty, dwii_notinqty, dwii_unit, ' +
              #10'    dwii_buyamt, dwii_buyamtrmb, dwii_buyprice, dwii_remark, '#10' ' +
              '   dwii_whid, dwii_id'#10'  FROM'#10'    d_warehouseinitem'#10'  WHERE {Wher' +
              'e}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwii_whiid'
                TableField = 'dwii_whiid'
              end
              item
                DatasetField = 'dwii_serial'
                TableField = 'dwii_serial'
              end
              item
                DatasetField = 'dwii_productid'
                TableField = 'dwii_productid'
              end
              item
                DatasetField = 'dwii_productno'
                TableField = 'dwii_productno'
              end
              item
                DatasetField = 'dwii_productrealno'
                TableField = 'dwii_productrealno'
              end
              item
                DatasetField = 'dwii_productname'
                TableField = 'dwii_productname'
              end
              item
                DatasetField = 'dwii_productcnname'
                TableField = 'dwii_productcnname'
              end
              item
                DatasetField = 'dwii_productenname'
                TableField = 'dwii_productenname'
              end
              item
                DatasetField = 'dwii_productdesc'
                TableField = 'dwii_productdesc'
              end
              item
                DatasetField = 'dwii_sellmcode'
                TableField = 'dwii_sellmcode'
              end
              item
                DatasetField = 'dwii_sellrate'
                TableField = 'dwii_sellrate'
              end
              item
                DatasetField = 'dwii_sellprice'
                TableField = 'dwii_sellprice'
              end
              item
                DatasetField = 'dwii_sellamt'
                TableField = 'dwii_sellamt'
              end
              item
                DatasetField = 'dwii_sellamtrmb'
                TableField = 'dwii_sellamtrmb'
              end
              item
                DatasetField = 'dwii_gw'
                TableField = 'dwii_gw'
              end
              item
                DatasetField = 'dwii_gwamt'
                TableField = 'dwii_gwamt'
              end
              item
                DatasetField = 'dwii_qty'
                TableField = 'dwii_qty'
              end
              item
                DatasetField = 'dwii_notinqty'
                TableField = 'dwii_notinqty'
              end
              item
                DatasetField = 'dwii_unit'
                TableField = 'dwii_unit'
              end
              item
                DatasetField = 'dwii_buyamt'
                TableField = 'dwii_buyamt'
              end
              item
                DatasetField = 'dwii_buyamtrmb'
                TableField = 'dwii_buyamtrmb'
              end
              item
                DatasetField = 'dwii_buyprice'
                TableField = 'dwii_buyprice'
              end
              item
                DatasetField = 'dwii_remark'
                TableField = 'dwii_remark'
              end
              item
                DatasetField = 'dwii_whid'
                TableField = 'dwii_whid'
              end
              item
                DatasetField = 'dwii_id'
                TableField = 'dwii_id'
              end>
          end>
        Name = 'd_warehouseinitem'
        Fields = <
          item
            Name = 'dwii_whiid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwii_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwii_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwii_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwii_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwii_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwii_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwii_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwii_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwii_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwii_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwii_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwii_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwii_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwii_gw'
            DataType = datFloat
          end
          item
            Name = 'dwii_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwii_qty'
            DataType = datFloat
          end
          item
            Name = 'dwii_notinqty'
            DataType = datFloat
          end
          item
            Name = 'dwii_unit'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwii_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dwii_buyamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwii_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dwii_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dwii_whid'
            DataType = datGuid
          end
          item
            Name = 'dwii_id'
            DataType = datInteger
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouseout'
            SQL = 
              'SELECT '#10'    dwho_id, dwho_no, dwho_date, dwho_whid, dwho_whname,' +
              ' '#10'    dwho_whstaff, dwho_type, dwho_piid, dwho_pino, dwho_cid, '#10 +
              '    dwho_cno, dwho_cname, dwho_createstaff, dwho_createdate, '#10'  ' +
              '  dwho_modifystaff, dwho_modifydate, dwho_qty, dwho_amt, '#10'    dw' +
              'ho_remark, dwho_checkrequeststaff, dwho_checkrequestid, '#10'    dwh' +
              'o_checkstaff, dwho_checkdate, dwho_state, dwho_oid, '#10'    dwho_os' +
              'impname, dwho_oiid, dwho_sellmcode, dwho_sellrate, '#10'    dwho_sel' +
              'lamt,dwho_accountid, dwho_projectid, dwho_projectno,'#10'    dwho_lc' +
              'no,dwho_lcid,dwho_payment,dwho_shipfrom,dwho_shipto,'#10'    dwho_pr' +
              'iceterm,dwho_shipway,dwho_mark,dwho_commisionrate,'#10'    dwho_comm' +
              'ision,dwho_agentid,dwho_agent,dwho_packagedesc,dwho_packingdesc,' +
              'dwho_refno,dwho_cpino'#10'  FROM'#10'    d_warehouseout'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwho_id'
                TableField = 'dwho_id'
              end
              item
                DatasetField = 'dwho_no'
                TableField = 'dwho_no'
              end
              item
                DatasetField = 'dwho_date'
                TableField = 'dwho_date'
              end
              item
                DatasetField = 'dwho_whid'
                TableField = 'dwho_whid'
              end
              item
                DatasetField = 'dwho_whname'
                TableField = 'dwho_whname'
              end
              item
                DatasetField = 'dwho_whstaff'
                TableField = 'dwho_whstaff'
              end
              item
                DatasetField = 'dwho_type'
                TableField = 'dwho_type'
              end
              item
                DatasetField = 'dwho_piid'
                TableField = 'dwho_piid'
              end
              item
                DatasetField = 'dwho_pino'
                TableField = 'dwho_pino'
              end
              item
                DatasetField = 'dwho_cid'
                TableField = 'dwho_cid'
              end
              item
                DatasetField = 'dwho_cno'
                TableField = 'dwho_cno'
              end
              item
                DatasetField = 'dwho_cname'
                TableField = 'dwho_cname'
              end
              item
                DatasetField = 'dwho_createstaff'
                TableField = 'dwho_createstaff'
              end
              item
                DatasetField = 'dwho_createdate'
                TableField = 'dwho_createdate'
              end
              item
                DatasetField = 'dwho_modifystaff'
                TableField = 'dwho_modifystaff'
              end
              item
                DatasetField = 'dwho_modifydate'
                TableField = 'dwho_modifydate'
              end
              item
                DatasetField = 'dwho_qty'
                TableField = 'dwho_qty'
              end
              item
                DatasetField = 'dwho_amt'
                TableField = 'dwho_amt'
              end
              item
                DatasetField = 'dwho_remark'
                TableField = 'dwho_remark'
              end
              item
                DatasetField = 'dwho_checkrequeststaff'
                TableField = 'dwho_checkrequeststaff'
              end
              item
                DatasetField = 'dwho_checkrequestid'
                TableField = 'dwho_checkrequestid'
              end
              item
                DatasetField = 'dwho_checkstaff'
                TableField = 'dwho_checkstaff'
              end
              item
                DatasetField = 'dwho_checkdate'
                TableField = 'dwho_checkdate'
              end
              item
                DatasetField = 'dwho_state'
                TableField = 'dwho_state'
              end
              item
                DatasetField = 'dwho_oid'
                TableField = 'dwho_oid'
              end
              item
                DatasetField = 'dwho_osimpname'
                TableField = 'dwho_osimpname'
              end
              item
                DatasetField = 'dwho_oiid'
                TableField = 'dwho_oiid'
              end
              item
                DatasetField = 'dwho_sellmcode'
                TableField = 'dwho_sellmcode'
              end
              item
                DatasetField = 'dwho_sellrate'
                TableField = 'dwho_sellrate'
              end
              item
                DatasetField = 'dwho_sellamt'
                TableField = 'dwho_sellamt'
              end
              item
                DatasetField = 'dwho_accountid'
                TableField = 'dwho_accountid'
              end
              item
                DatasetField = 'dwho_projectid'
                TableField = 'dwho_projectid'
              end
              item
                DatasetField = 'dwho_projectno'
                TableField = 'dwho_projectno'
              end
              item
                DatasetField = 'dwho_lcno'
                TableField = 'dwho_lcno'
              end
              item
                DatasetField = 'dwho_lcid'
                TableField = 'dwho_lcid'
              end
              item
                DatasetField = 'dwho_payment'
                TableField = 'dwho_payment'
              end
              item
                DatasetField = 'dwho_shipfrom'
                TableField = 'dwho_shipfrom'
              end
              item
                DatasetField = 'dwho_shipto'
                TableField = 'dwho_shipto'
              end
              item
                DatasetField = 'dwho_priceterm'
                TableField = 'dwho_priceterm'
              end
              item
                DatasetField = 'dwho_shipway'
                TableField = 'dwho_shipway'
              end
              item
                DatasetField = 'dwho_mark'
                TableField = 'dwho_mark'
              end
              item
                DatasetField = 'dwho_commisionrate'
                TableField = 'dwho_commisionrate'
              end
              item
                DatasetField = 'dwho_commision'
                TableField = 'dwho_commision'
              end
              item
                DatasetField = 'dwho_agentid'
                TableField = 'dwho_agentid'
              end
              item
                DatasetField = 'dwho_agent'
                TableField = 'dwho_agent'
              end
              item
                DatasetField = 'dwho_packagedesc'
                TableField = 'dwho_packagedesc'
              end
              item
                DatasetField = 'dwho_packingdesc'
                TableField = 'dwho_packingdesc'
              end
              item
                DatasetField = 'dwho_refno'
                TableField = 'dwho_refno'
              end
              item
                DatasetField = 'dwho_cpino'
                TableField = 'dwho_cpino'
              end>
          end>
        Name = 'd_warehouseout'
        Fields = <
          item
            Name = 'dwho_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwho_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwho_date'
            DataType = datDateTime
          end
          item
            Name = 'dwho_whid'
            DataType = datGuid
          end
          item
            Name = 'dwho_whname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_whstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_type'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwho_piid'
            DataType = datGuid
          end
          item
            Name = 'dwho_pino'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwho_cid'
            DataType = datGuid
          end
          item
            Name = 'dwho_cno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwho_cname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dwho_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dwho_qty'
            DataType = datFloat
          end
          item
            Name = 'dwho_amt'
            DataType = datFloat
          end
          item
            Name = 'dwho_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dwho_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dwho_checkstaff'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwho_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dwho_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwho_oid'
            DataType = datGuid
          end
          item
            Name = 'dwho_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_oiid'
            DataType = datInteger
          end
          item
            Name = 'dwho_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwho_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwho_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwho_accountid'
            DataType = datGuid
          end
          item
            Name = 'dwho_projectid'
            DataType = datGuid
          end
          item
            Name = 'dwho_projectno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_lcno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_lcid'
            DataType = datGuid
          end
          item
            Name = 'dwho_payment'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwho_shipfrom'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_shipto'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_priceterm'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_shipway'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_mark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwho_commisionrate'
            DataType = datFloat
          end
          item
            Name = 'dwho_commision'
            DataType = datFloat
          end
          item
            Name = 'dwho_agentid'
            DataType = datGuid
          end
          item
            Name = 'dwho_agent'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_packagedesc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwho_packingdesc'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwho_refno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwho_cpino'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_receiveinvoice'
            SQL = 
              'SELECT '#10'    dri_id, dri_no, dri_date, dri_matchtype, dri_matchid' +
              ', '#10'    dri_matchno, dri_matchname, dri_staff, dri_amt, dri_mcode' +
              ', '#10'    dri_remark, dri_createstaff, dri_createdate, dri_modifyst' +
              'aff, '#10'    dri_modifydate, dri_billno, dri_billid, dri_oid, dri_o' +
              'simpname, '#10'    dri_oiid, dri_state'#10'  FROM'#10'    d_receiveinvoice'#10' ' +
              ' WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dri_id'
                TableField = 'dri_id'
              end
              item
                DatasetField = 'dri_no'
                TableField = 'dri_no'
              end
              item
                DatasetField = 'dri_date'
                TableField = 'dri_date'
              end
              item
                DatasetField = 'dri_matchtype'
                TableField = 'dri_matchtype'
              end
              item
                DatasetField = 'dri_matchid'
                TableField = 'dri_matchid'
              end
              item
                DatasetField = 'dri_matchno'
                TableField = 'dri_matchno'
              end
              item
                DatasetField = 'dri_matchname'
                TableField = 'dri_matchname'
              end
              item
                DatasetField = 'dri_staff'
                TableField = 'dri_staff'
              end
              item
                DatasetField = 'dri_amt'
                TableField = 'dri_amt'
              end
              item
                DatasetField = 'dri_mcode'
                TableField = 'dri_mcode'
              end
              item
                DatasetField = 'dri_remark'
                TableField = 'dri_remark'
              end
              item
                DatasetField = 'dri_createstaff'
                TableField = 'dri_createstaff'
              end
              item
                DatasetField = 'dri_createdate'
                TableField = 'dri_createdate'
              end
              item
                DatasetField = 'dri_modifystaff'
                TableField = 'dri_modifystaff'
              end
              item
                DatasetField = 'dri_modifydate'
                TableField = 'dri_modifydate'
              end
              item
                DatasetField = 'dri_billno'
                TableField = 'dri_billno'
              end
              item
                DatasetField = 'dri_billid'
                TableField = 'dri_billid'
              end
              item
                DatasetField = 'dri_oid'
                TableField = 'dri_oid'
              end
              item
                DatasetField = 'dri_osimpname'
                TableField = 'dri_osimpname'
              end
              item
                DatasetField = 'dri_oiid'
                TableField = 'dri_oiid'
              end
              item
                DatasetField = 'dri_state'
                TableField = 'dri_state'
              end>
          end>
        Name = 'd_receiveinvoice'
        Fields = <
          item
            Name = 'dri_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dri_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dri_date'
            DataType = datDateTime
          end
          item
            Name = 'dri_matchtype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dri_matchid'
            DataType = datGuid
          end
          item
            Name = 'dri_matchno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dri_matchname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dri_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dri_amt'
            DataType = datFloat
          end
          item
            Name = 'dri_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dri_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dri_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dri_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dri_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dri_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dri_billno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dri_billid'
            DataType = datGuid
          end
          item
            Name = 'dri_oid'
            DataType = datGuid
          end
          item
            Name = 'dri_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dri_oiid'
            DataType = datInteger
          end
          item
            Name = 'dri_state'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_receivebalanceitem'
            SQL = 
              'SELECT'#10'    drbi_pid, drbi_serial, drbi_type, drbi_mcode,drbi_acc' +
              'ountid,'#10'    drbi_rate, drbi_amt, drbi_bankcost,'#10'    drbi_otherfe' +
              'e, drbi_balanceamt, drbi_remark, drbi_billid,'#10'    drbi_billno,dr' +
              'b_no,drb_date,drb_staff,drb_type,drb_rate'#10'  FROM'#10'    d_receiveba' +
              'lanceitem left outer join d_receivebalance on drbi_pid=drb_id'#10'  ' +
              'WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'drbi_pid'
                TableField = 'drbi_pid'
              end
              item
                DatasetField = 'drbi_serial'
                TableField = 'drbi_serial'
              end
              item
                DatasetField = 'drbi_accountid'
                TableField = 'drbi_accountid'
              end
              item
                DatasetField = 'drbi_type'
                TableField = 'drbi_type'
              end
              item
                DatasetField = 'drbi_mcode'
                TableField = 'drbi_mcode'
              end
              item
                DatasetField = 'drbi_rate'
                TableField = 'drbi_rate'
              end
              item
                DatasetField = 'drbi_amt'
                TableField = 'drbi_amt'
              end
              item
                DatasetField = 'drbi_bankcost'
                TableField = 'drbi_bankcost'
              end
              item
                DatasetField = 'drbi_otherfee'
                TableField = 'drbi_otherfee'
              end
              item
                DatasetField = 'drbi_balanceamt'
                TableField = 'drbi_balanceamt'
              end
              item
                DatasetField = 'drbi_remark'
                TableField = 'drbi_remark'
              end
              item
                DatasetField = 'drbi_billid'
                TableField = 'drbi_billid'
              end
              item
                DatasetField = 'drbi_billno'
                TableField = 'drbi_billno'
              end
              item
                DatasetField = 'drb_no'
                TableField = '<unknown>'
                SQLOrigin = 'drb_no'
              end
              item
                DatasetField = 'drb_date'
                TableField = '<unknown>'
                SQLOrigin = 'drb_date'
              end
              item
                DatasetField = 'drb_staff'
                TableField = '<unknown>'
                SQLOrigin = 'drb_staff'
              end
              item
                DatasetField = 'drb_type'
                TableField = '<unknown>'
                SQLOrigin = 'drb_type'
              end
              item
                DatasetField = 'drb_rate'
                TableField = '<unknown>'
                SQLOrigin = 'drb_rate'
              end>
          end>
        Name = 'd_receivebalanceitem1'
        Fields = <
          item
            Name = 'drbi_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'drbi_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'drbi_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drbi_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'drbi_accountid'
            DataType = datGuid
          end
          item
            Name = 'drbi_rate'
            DataType = datFloat
          end
          item
            Name = 'drbi_amt'
            DataType = datFloat
          end
          item
            Name = 'drbi_bankcost'
            DataType = datFloat
          end
          item
            Name = 'drbi_otherfee'
            DataType = datFloat
          end
          item
            Name = 'drbi_balanceamt'
            DataType = datFloat
          end
          item
            Name = 'drbi_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'drbi_billid'
            DataType = datGuid
          end
          item
            Name = 'drbi_billno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_date'
            DataType = datDateTime
          end
          item
            Name = 'drb_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'drb_rate'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_feemanageitem1'
            SQL = 
              'SELECT '#10'    dfmi1_pid, dfmi1_serial, dfmi1_object, dfmi1_class, ' +
              'dfmi1_date,'#10'    dfmu1_purpose, dfmu1_amt, dfmu1_remark, dfmu1_co' +
              'mpanyamt, '#10'    dfmu1_departamt'#10'  FROM'#10'    d_feemanageitem1'#10'  WHE' +
              'RE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dfmi1_pid'
                TableField = 'dfmi1_pid'
              end
              item
                DatasetField = 'dfmi1_serial'
                TableField = 'dfmi1_serial'
              end
              item
                DatasetField = 'dfmi1_object'
                TableField = 'dfmi1_object'
              end
              item
                DatasetField = 'dfmi1_class'
                TableField = 'dfmi1_class'
              end
              item
                DatasetField = 'dfmu1_purpose'
                TableField = 'dfmu1_purpose'
              end
              item
                DatasetField = 'dfmu1_amt'
                TableField = 'dfmu1_amt'
              end
              item
                DatasetField = 'dfmu1_remark'
                TableField = 'dfmu1_remark'
              end
              item
                DatasetField = 'dfmu1_companyamt'
                TableField = 'dfmu1_companyamt'
              end
              item
                DatasetField = 'dfmu1_departamt'
                TableField = 'dfmu1_departamt'
              end
              item
                DatasetField = 'dfmi1_date'
                TableField = 'dfmi1_date'
              end>
          end>
        Name = 'd_feemanageitem1'
        Fields = <
          item
            Name = 'dfmi1_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dfmi1_serial'
            DataType = datAutoInc
            GeneratorName = 'd_feemanageitem1'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dfmi1_object'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dfmi1_class'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dfmi1_date'
            DataType = datDateTime
          end
          item
            Name = 'dfmu1_purpose'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dfmu1_amt'
            DataType = datFloat
          end
          item
            Name = 'dfmu1_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dfmu1_companyamt'
            DataType = datFloat
          end
          item
            Name = 'dfmu1_departamt'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_importdefine'
            SQL = 
              'SELECT '#10'    bid_id, bid_bill, bid_checked, bid_alwaysneed, bid_n' +
              'ame, '#10'    bid_field'#10'  FROM'#10'    b_importdefine'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bid_id'
                TableField = 'bid_id'
              end
              item
                DatasetField = 'bid_bill'
                TableField = 'bid_bill'
              end
              item
                DatasetField = 'bid_checked'
                TableField = 'bid_checked'
              end
              item
                DatasetField = 'bid_alwaysneed'
                TableField = 'bid_alwaysneed'
              end
              item
                DatasetField = 'bid_name'
                TableField = 'bid_name'
              end
              item
                DatasetField = 'bid_field'
                TableField = 'bid_field'
              end>
          end>
        Name = 'b_importdefine'
        Fields = <
          item
            Name = 'bid_id'
            DataType = datAutoInc
            GeneratorName = 'b_importdefine'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bid_bill'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bid_checked'
            DataType = datBoolean
          end
          item
            Name = 'bid_alwaysneed'
            DataType = datBoolean
          end
          item
            Name = 'bid_name'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bid_field'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_labelconfig'
            SQL = 
              'SELECT '#10'    dlc_id, dlc_define1, dlc_define2, dlc_define3, dlc_d' +
              'efine4, '#10'    dlc_define5, dlc_define6, dlc_color1, dlc_color2, d' +
              'lc_color3, '#10'    dlc_color4, dlc_color5, dlc_color6'#10'  FROM'#10'    d_' +
              'labelconfig'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dlc_id'
                TableField = 'dlc_id'
              end
              item
                DatasetField = 'dlc_define1'
                TableField = 'dlc_define1'
              end
              item
                DatasetField = 'dlc_define2'
                TableField = 'dlc_define2'
              end
              item
                DatasetField = 'dlc_define3'
                TableField = 'dlc_define3'
              end
              item
                DatasetField = 'dlc_define4'
                TableField = 'dlc_define4'
              end
              item
                DatasetField = 'dlc_define5'
                TableField = 'dlc_define5'
              end
              item
                DatasetField = 'dlc_define6'
                TableField = 'dlc_define6'
              end
              item
                DatasetField = 'dlc_color1'
                TableField = 'dlc_color1'
              end
              item
                DatasetField = 'dlc_color2'
                TableField = 'dlc_color2'
              end
              item
                DatasetField = 'dlc_color3'
                TableField = 'dlc_color3'
              end
              item
                DatasetField = 'dlc_color4'
                TableField = 'dlc_color4'
              end
              item
                DatasetField = 'dlc_color5'
                TableField = 'dlc_color5'
              end
              item
                DatasetField = 'dlc_color6'
                TableField = 'dlc_color6'
              end>
          end>
        Name = 'd_labelconfig'
        Fields = <
          item
            Name = 'dlc_id'
            DataType = datAutoInc
            GeneratorName = 'd_labelconfig'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dlc_define1'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define3'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define4'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define5'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define6'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_color1'
            DataType = datInteger
          end
          item
            Name = 'dlc_color2'
            DataType = datInteger
          end
          item
            Name = 'dlc_color3'
            DataType = datInteger
          end
          item
            Name = 'dlc_color4'
            DataType = datInteger
          end
          item
            Name = 'dlc_color5'
            DataType = datInteger
          end
          item
            Name = 'dlc_color6'
            DataType = datInteger
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_projectlabelconfig'
            SQL = 
              'SELECT '#10'    dlc_id, dlc_define1, dlc_define2, dlc_define3, dlc_d' +
              'efine4, '#10'    dlc_define5, dlc_define6, dlc_color1, dlc_color2, d' +
              'lc_color3, '#10'    dlc_color4, dlc_color5, dlc_color6,dlc_newcolor,' +
              'dlc_normalcolor'#10'  FROM'#10'    d_projectlabelconfig'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dlc_id'
                TableField = 'dlc_id'
              end
              item
                DatasetField = 'dlc_define1'
                TableField = 'dlc_define1'
              end
              item
                DatasetField = 'dlc_define2'
                TableField = 'dlc_define2'
              end
              item
                DatasetField = 'dlc_define3'
                TableField = 'dlc_define3'
              end
              item
                DatasetField = 'dlc_define4'
                TableField = 'dlc_define4'
              end
              item
                DatasetField = 'dlc_define5'
                TableField = 'dlc_define5'
              end
              item
                DatasetField = 'dlc_define6'
                TableField = 'dlc_define6'
              end
              item
                DatasetField = 'dlc_color1'
                TableField = 'dlc_color1'
              end
              item
                DatasetField = 'dlc_color2'
                TableField = 'dlc_color2'
              end
              item
                DatasetField = 'dlc_color3'
                TableField = 'dlc_color3'
              end
              item
                DatasetField = 'dlc_color4'
                TableField = 'dlc_color4'
              end
              item
                DatasetField = 'dlc_color5'
                TableField = 'dlc_color5'
              end
              item
                DatasetField = 'dlc_color6'
                TableField = 'dlc_color6'
              end
              item
                DatasetField = 'dlc_newcolor'
                TableField = 'dlc_newcolor'
              end
              item
                DatasetField = 'dlc_normalcolor'
                TableField = 'dlc_normalcolor'
              end>
          end>
        Name = 'd_projectlabelconfig'
        Fields = <
          item
            Name = 'dlc_id'
            DataType = datAutoInc
            GeneratorName = 'd_projectlabelconfig'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dlc_define1'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define2'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define3'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define4'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define5'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_define6'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dlc_color1'
            DataType = datInteger
          end
          item
            Name = 'dlc_color2'
            DataType = datInteger
          end
          item
            Name = 'dlc_color3'
            DataType = datInteger
          end
          item
            Name = 'dlc_color4'
            DataType = datInteger
          end
          item
            Name = 'dlc_color5'
            DataType = datInteger
          end
          item
            Name = 'dlc_color6'
            DataType = datInteger
          end
          item
            Name = 'dlc_newcolor'
            DataType = datInteger
          end
          item
            Name = 'dlc_normalcolor'
            DataType = datInteger
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_othertrace'
            SQL = 
              'SELECT '#10'    dot_pid, dot_serial, dot_state, dot_billtype, dot_bi' +
              'llid, '#10'    dot_billno, dot_date, dot_remark, dot_filename, dot_f' +
              'ileext'#10'  FROM'#10'    d_othertrace'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dot_pid'
                TableField = 'dot_pid'
              end
              item
                DatasetField = 'dot_serial'
                TableField = 'dot_serial'
              end
              item
                DatasetField = 'dot_state'
                TableField = 'dot_state'
              end
              item
                DatasetField = 'dot_billtype'
                TableField = 'dot_billtype'
              end
              item
                DatasetField = 'dot_billid'
                TableField = 'dot_billid'
              end
              item
                DatasetField = 'dot_billno'
                TableField = 'dot_billno'
              end
              item
                DatasetField = 'dot_date'
                TableField = 'dot_date'
              end
              item
                DatasetField = 'dot_remark'
                TableField = 'dot_remark'
              end
              item
                DatasetField = 'dot_filename'
                TableField = 'dot_filename'
              end
              item
                DatasetField = 'dot_fileext'
                TableField = 'dot_fileext'
              end>
          end>
        Name = 'd_othertrace'
        Fields = <
          item
            Name = 'dot_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dot_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dot_state'
            DataType = datString
            Size = 4000
          end
          item
            Name = 'dot_billtype'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dot_billid'
            DataType = datGuid
          end
          item
            Name = 'dot_billno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dot_date'
            DataType = datDateTime
          end
          item
            Name = 'dot_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dot_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dot_fileext'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_outbusiness'
            SQL = 
              'SELECT '#10'    dob_id, dob_pid, dob_date, dob_man, dob_staff, dob_t' +
              'itle, '#10'    dob_content, dob_remark, dob_filename, dob_opstaff'#10'  ' +
              'FROM'#10'    d_outbusiness'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dob_id'
                TableField = 'dob_id'
              end
              item
                DatasetField = 'dob_pid'
                TableField = 'dob_pid'
              end
              item
                DatasetField = 'dob_date'
                TableField = 'dob_date'
              end
              item
                DatasetField = 'dob_man'
                TableField = 'dob_man'
              end
              item
                DatasetField = 'dob_staff'
                TableField = 'dob_staff'
              end
              item
                DatasetField = 'dob_title'
                TableField = 'dob_title'
              end
              item
                DatasetField = 'dob_content'
                TableField = 'dob_content'
              end
              item
                DatasetField = 'dob_remark'
                TableField = 'dob_remark'
              end
              item
                DatasetField = 'dob_filename'
                TableField = 'dob_filename'
              end
              item
                DatasetField = 'dob_opstaff'
                TableField = 'dob_opstaff'
              end>
          end>
        Name = 'd_outbusiness'
        Fields = <
          item
            Name = 'dob_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dob_pid'
            DataType = datGuid
          end
          item
            Name = 'dob_date'
            DataType = datDateTime
          end
          item
            Name = 'dob_man'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dob_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dob_title'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dob_content'
            DataType = datString
            Size = 300
          end
          item
            Name = 'dob_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dob_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dob_opstaff'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_productfactory'
            SQL = 
              'select bpi_no,bpi_realno,bpi_cname,bpi_simpname,bpi_cnname,bpi_e' +
              'nname,bpi_desc,bpf_mcode,bpf_rate,bpf_price,bpf_date,bpf_fid'#10#10'fr' +
              'om b_productfactory left outer join b_productinfo on bpi_id=bpf_' +
              'pid'#10#10'where {where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bpi_no'
                TableField = '<unknown>'
                SQLOrigin = 'bpi_no'
              end
              item
                DatasetField = 'bpi_realno'
                TableField = '<unknown>'
                SQLOrigin = 'bpi_realno'
              end
              item
                DatasetField = 'bpi_cname'
                TableField = '<unknown>'
                SQLOrigin = 'bpi_cname'
              end
              item
                DatasetField = 'bpi_simpname'
                TableField = '<unknown>'
                SQLOrigin = 'bpi_simpname'
              end
              item
                DatasetField = 'bpi_cnname'
                TableField = '<unknown>'
                SQLOrigin = 'bpi_cnname'
              end
              item
                DatasetField = 'bpi_enname'
                TableField = '<unknown>'
                SQLOrigin = 'bpi_enname'
              end
              item
                DatasetField = 'bpi_desc'
                TableField = '<unknown>'
                SQLOrigin = 'bpi_desc'
              end
              item
                DatasetField = 'bpf_mcode'
                TableField = 'bpf_mcode'
              end
              item
                DatasetField = 'bpf_rate'
                TableField = 'bpf_rate'
              end
              item
                DatasetField = 'bpf_price'
                TableField = 'bpf_price'
              end
              item
                DatasetField = 'bpf_date'
                TableField = 'bpf_date'
              end
              item
                DatasetField = 'bpf_fid'
                TableField = 'bpf_fid'
              end>
          end>
        Name = 'b_factoryproduct'
        Fields = <
          item
            Name = 'bpi_no'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_realno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bpi_cname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpi_simpname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bpi_cnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bpi_enname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bpi_desc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'bpf_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bpf_rate'
            DataType = datFloat
          end
          item
            Name = 'bpf_price'
            DataType = datFloat
          end
          item
            Name = 'bpf_date'
            DataType = datDateTime
          end
          item
            Name = 'bpf_fid'
            DataType = datGuid
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_recycle'
            SQL = 
              'SELECT '#10'    dr_id, dr_type, dr_billid, dr_billno, dr_createstaff' +
              ', '#10'    dr_createdate, dr_deletestaff, dr_deletedate'#10'  FROM'#10'    d' +
              '_recycle'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dr_id'
                TableField = 'dr_id'
              end
              item
                DatasetField = 'dr_type'
                TableField = 'dr_type'
              end
              item
                DatasetField = 'dr_billid'
                TableField = 'dr_billid'
              end
              item
                DatasetField = 'dr_billno'
                TableField = 'dr_billno'
              end
              item
                DatasetField = 'dr_createstaff'
                TableField = 'dr_createstaff'
              end
              item
                DatasetField = 'dr_createdate'
                TableField = 'dr_createdate'
              end
              item
                DatasetField = 'dr_deletestaff'
                TableField = 'dr_deletestaff'
              end
              item
                DatasetField = 'dr_deletedate'
                TableField = 'dr_deletedate'
              end>
          end>
        Name = 'd_recycle'
        Fields = <
          item
            Name = 'dr_id'
            DataType = datAutoInc
            GeneratorName = 'd_recycle'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dr_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dr_billid'
            DataType = datGuid
          end
          item
            Name = 'dr_billno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dr_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dr_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dr_deletestaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dr_deletedate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_productinfo'
            SQL = 'SELECT '#10'    bpi_realno'#10'  FROM'#10'    b_productinfo'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bpi_realno'
                TableField = 'bpi_realno'
              end>
          end>
        Name = 'realno'
        Fields = <
          item
            Name = 'bpi_realno'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_lc'
            SQL = 
              'SELECT '#10'    dl_id, dl_no, dl_date, dl_oid, dl_oiid, dl_osimpname' +
              ', '#10'    dl_man, dl_bank, dl_mcode, dl_amt, dl_followstate, '#10'    d' +
              'l_followdate, dl_validdate, dl_shipdate, dl_fid, dl_fsimpname, '#10 +
              '    dl_ben, dl_staff, dl_department, dl_createstaff, dl_createda' +
              'te, '#10'    dl_modifystaff, dl_modifydate, dl_snos, dl_producttitle' +
              ', '#10'    dl_remark, dl_staffid, dl_jiaodandate, dl_jiaodandateactu' +
              'al, '#10'    dl_shipdateactual, dl_getmoneydate, dl_getmoney, dl_get' +
              'moneyagent, '#10'    dl_stockamt, dl_payedamt, dl_notpayedamt, dl_pr' +
              'ofitrate, '#10'    dl_getamt'#10'  FROM'#10'    d_lc'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dl_id'
                TableField = 'dl_id'
              end
              item
                DatasetField = 'dl_no'
                TableField = 'dl_no'
              end
              item
                DatasetField = 'dl_date'
                TableField = 'dl_date'
              end
              item
                DatasetField = 'dl_oid'
                TableField = 'dl_oid'
              end
              item
                DatasetField = 'dl_oiid'
                TableField = 'dl_oiid'
              end
              item
                DatasetField = 'dl_osimpname'
                TableField = 'dl_osimpname'
              end
              item
                DatasetField = 'dl_man'
                TableField = 'dl_man'
              end
              item
                DatasetField = 'dl_bank'
                TableField = 'dl_bank'
              end
              item
                DatasetField = 'dl_mcode'
                TableField = 'dl_mcode'
              end
              item
                DatasetField = 'dl_amt'
                TableField = 'dl_amt'
              end
              item
                DatasetField = 'dl_followstate'
                TableField = 'dl_followstate'
              end
              item
                DatasetField = 'dl_followdate'
                TableField = 'dl_followdate'
              end
              item
                DatasetField = 'dl_validdate'
                TableField = 'dl_validdate'
              end
              item
                DatasetField = 'dl_shipdate'
                TableField = 'dl_shipdate'
              end
              item
                DatasetField = 'dl_fid'
                TableField = 'dl_fid'
              end
              item
                DatasetField = 'dl_fsimpname'
                TableField = 'dl_fsimpname'
              end
              item
                DatasetField = 'dl_ben'
                TableField = 'dl_ben'
              end
              item
                DatasetField = 'dl_staff'
                TableField = 'dl_staff'
              end
              item
                DatasetField = 'dl_department'
                TableField = 'dl_department'
              end
              item
                DatasetField = 'dl_createstaff'
                TableField = 'dl_createstaff'
              end
              item
                DatasetField = 'dl_createdate'
                TableField = 'dl_createdate'
              end
              item
                DatasetField = 'dl_modifystaff'
                TableField = 'dl_modifystaff'
              end
              item
                DatasetField = 'dl_modifydate'
                TableField = 'dl_modifydate'
              end
              item
                DatasetField = 'dl_snos'
                TableField = 'dl_snos'
              end
              item
                DatasetField = 'dl_producttitle'
                TableField = 'dl_producttitle'
              end
              item
                DatasetField = 'dl_remark'
                TableField = 'dl_remark'
              end
              item
                DatasetField = 'dl_staffid'
                TableField = 'dl_staffid'
              end
              item
                DatasetField = 'dl_jiaodandate'
                TableField = 'dl_jiaodandate'
              end
              item
                DatasetField = 'dl_jiaodandateactual'
                TableField = 'dl_jiaodandateactual'
              end
              item
                DatasetField = 'dl_shipdateactual'
                TableField = 'dl_shipdateactual'
              end
              item
                DatasetField = 'dl_getmoneydate'
                TableField = 'dl_getmoneydate'
              end
              item
                DatasetField = 'dl_getmoney'
                TableField = 'dl_getmoney'
              end
              item
                DatasetField = 'dl_getmoneyagent'
                TableField = 'dl_getmoneyagent'
              end
              item
                DatasetField = 'dl_stockamt'
                TableField = 'dl_stockamt'
              end
              item
                DatasetField = 'dl_payedamt'
                TableField = 'dl_payedamt'
              end
              item
                DatasetField = 'dl_notpayedamt'
                TableField = 'dl_notpayedamt'
              end
              item
                DatasetField = 'dl_profitrate'
                TableField = 'dl_profitrate'
              end
              item
                DatasetField = 'dl_getamt'
                TableField = 'dl_getamt'
              end>
          end>
        Name = 'd_lc'
        Fields = <
          item
            Name = 'dl_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dl_no'
            DataType = datString
            Size = 30
            Required = True
          end
          item
            Name = 'dl_date'
            DataType = datDateTime
          end
          item
            Name = 'dl_oid'
            DataType = datGuid
          end
          item
            Name = 'dl_oiid'
            DataType = datInteger
          end
          item
            Name = 'dl_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dl_man'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dl_bank'
            DataType = datString
            Size = 255
          end
          item
            Name = 'dl_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dl_amt'
            DataType = datFloat
          end
          item
            Name = 'dl_followstate'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dl_followdate'
            DataType = datDateTime
          end
          item
            Name = 'dl_validdate'
            DataType = datDateTime
          end
          item
            Name = 'dl_shipdate'
            DataType = datDateTime
          end
          item
            Name = 'dl_fid'
            DataType = datGuid
          end
          item
            Name = 'dl_fsimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dl_ben'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dl_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dl_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dl_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dl_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dl_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dl_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dl_snos'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dl_producttitle'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dl_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dl_staffid'
            DataType = datGuid
          end
          item
            Name = 'dl_jiaodandate'
            DataType = datDateTime
          end
          item
            Name = 'dl_jiaodandateactual'
            DataType = datDateTime
          end
          item
            Name = 'dl_shipdateactual'
            DataType = datDateTime
          end
          item
            Name = 'dl_getmoneydate'
            DataType = datDateTime
          end
          item
            Name = 'dl_getmoney'
            DataType = datFloat
          end
          item
            Name = 'dl_getmoneyagent'
            DataType = datFloat
          end
          item
            Name = 'dl_stockamt'
            DataType = datFloat
          end
          item
            Name = 'dl_payedamt'
            DataType = datFloat
          end
          item
            Name = 'dl_notpayedamt'
            DataType = datFloat
          end
          item
            Name = 'dl_profitrate'
            DataType = datFloat
          end
          item
            Name = 'dl_getamt'
            DataType = datFloat
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_pistate'
            SQL = 
              'SELECT '#10'    dps_pid, dps_serial, dps_filename, dps_fileext,  dps' +
              '_file'#10'  FROM'#10'    d_pistate'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dps_pid'
                TableField = 'dps_pid'
              end
              item
                DatasetField = 'dps_serial'
                TableField = 'dps_serial'
              end
              item
                DatasetField = 'dps_filename'
                TableField = 'dps_filename'
              end
              item
                DatasetField = 'dps_fileext'
                TableField = 'dps_fileext'
              end
              item
                DatasetField = 'dps_file'
                TableField = 'dps_file'
              end>
          end>
        Name = 'd_pistate1'
        Fields = <
          item
            Name = 'dps_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dps_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dps_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dps_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dps_file'
            DataType = datBlob
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_projectstate'
            SQL = 
              'SELECT '#10'    dps_pid, dps_serial, dps_filename, dps_fileext,'#10'    ' +
              'dps_file'#10'  FROM'#10'    d_projectstate'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dps_pid'
                TableField = 'dps_pid'
              end
              item
                DatasetField = 'dps_serial'
                TableField = 'dps_serial'
              end
              item
                DatasetField = 'dps_filename'
                TableField = 'dps_filename'
              end
              item
                DatasetField = 'dps_fileext'
                TableField = 'dps_fileext'
              end
              item
                DatasetField = 'dps_file'
                TableField = 'dps_file'
              end>
          end>
        Name = 'd_projectstate1'
        Fields = <
          item
            Name = 'dps_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dps_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dps_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dps_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dps_file'
            DataType = datBlob
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_customerfollow'
            SQL = 
              'SELECT '#10'    bcf_id, bcf_pid, bcf_filename, bcf_fileext, bcf_file' +
              #10'  FROM'#10'    b_customerfollow'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bcf_id'
                TableField = 'bcf_id'
              end
              item
                DatasetField = 'bcf_pid'
                TableField = 'bcf_pid'
              end
              item
                DatasetField = 'bcf_filename'
                TableField = 'bcf_filename'
              end
              item
                DatasetField = 'bcf_fileext'
                TableField = 'bcf_fileext'
              end
              item
                DatasetField = 'bcf_file'
                TableField = 'bcf_file'
              end>
          end>
        Name = 'b_customerfollow1'
        Fields = <
          item
            Name = 'bcf_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bcf_pid'
            DataType = datGuid
          end
          item
            Name = 'bcf_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'bcf_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bcf_file'
            DataType = datBlob
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_stockstate'
            SQL = 
              'SELECT '#10'    dss_pid, dss_serial, dss_filename, dss_fileext,'#10'    ' +
              'dss_file'#10'  FROM'#10'    d_stockstate'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dss_pid'
                TableField = 'dss_pid'
              end
              item
                DatasetField = 'dss_serial'
                TableField = 'dss_serial'
              end
              item
                DatasetField = 'dss_filename'
                TableField = 'dss_filename'
              end
              item
                DatasetField = 'dss_fileext'
                TableField = 'dss_fileext'
              end
              item
                DatasetField = 'dss_file'
                TableField = 'dss_file'
              end>
          end>
        Name = 'd_stockstate1'
        Fields = <
          item
            Name = 'dss_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dss_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dss_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dss_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dss_file'
            DataType = datBlob
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_othertrace'
            SQL = 
              'SELECT '#10'    dot_pid, dot_serial, dot_filename, dot_fileext,'#10'    ' +
              'dot_file'#10'  FROM'#10'    d_othertrace'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dot_pid'
                TableField = 'dot_pid'
              end
              item
                DatasetField = 'dot_serial'
                TableField = 'dot_serial'
              end
              item
                DatasetField = 'dot_filename'
                TableField = 'dot_filename'
              end
              item
                DatasetField = 'dot_fileext'
                TableField = 'dot_fileext'
              end
              item
                DatasetField = 'dot_file'
                TableField = 'dot_file'
              end>
          end>
        Name = 'd_othertrace1'
        Fields = <
          item
            Name = 'dot_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dot_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dot_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dot_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dot_file'
            DataType = datBlob
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_transportmanage'
            SQL = 
              'SELECT '#10'    dtm_id, dtm_pid, dtm_oid, dtm_oiid, dtm_osimpname, '#10 +
              '    dtm_no, dtm_pnos, dtm_snos, dtm_pinos, dtm_rnos, dtm_shipfro' +
              'm, '#10'    dtm_csimpnames, dtm_products, dtm_hscode, dtm_shipway, '#10 +
              '    dtm_dealway, dtm_agent, dtm_gw, dtm_shipfee, dtm_custom, '#10'  ' +
              '  dtm_work, dtm_etd, dtm_eta, dtm_customno, dtm_fangxingdate, '#10' ' +
              '   dtm_customdate, dtm_taxdate, dtm_paytype, dtm_paydate, '#10'    d' +
              'tm_payamt, dtm_state, dtm_hasattachs, dtm_verificationdate, '#10'   ' +
              ' dtm_modifydate, dtm_modifystaff, dtm_createdate, dtm_createstaf' +
              'f, '#10'    dtm_staff, dtm_staffid, dtm_staffiid,dtm_remark,dtm_pno'#10 +
              '  FROM'#10'    d_transportmanage'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dtm_id'
                TableField = 'dtm_id'
              end
              item
                DatasetField = 'dtm_pid'
                TableField = 'dtm_pid'
              end
              item
                DatasetField = 'dtm_oid'
                TableField = 'dtm_oid'
              end
              item
                DatasetField = 'dtm_oiid'
                TableField = 'dtm_oiid'
              end
              item
                DatasetField = 'dtm_osimpname'
                TableField = 'dtm_osimpname'
              end
              item
                DatasetField = 'dtm_no'
                TableField = 'dtm_no'
              end
              item
                DatasetField = 'dtm_pnos'
                TableField = 'dtm_pnos'
              end
              item
                DatasetField = 'dtm_snos'
                TableField = 'dtm_snos'
              end
              item
                DatasetField = 'dtm_pinos'
                TableField = 'dtm_pinos'
              end
              item
                DatasetField = 'dtm_rnos'
                TableField = 'dtm_rnos'
              end
              item
                DatasetField = 'dtm_shipfrom'
                TableField = 'dtm_shipfrom'
              end
              item
                DatasetField = 'dtm_csimpnames'
                TableField = 'dtm_csimpnames'
              end
              item
                DatasetField = 'dtm_products'
                TableField = 'dtm_products'
              end
              item
                DatasetField = 'dtm_hscode'
                TableField = 'dtm_hscode'
              end
              item
                DatasetField = 'dtm_shipway'
                TableField = 'dtm_shipway'
              end
              item
                DatasetField = 'dtm_dealway'
                TableField = 'dtm_dealway'
              end
              item
                DatasetField = 'dtm_agent'
                TableField = 'dtm_agent'
              end
              item
                DatasetField = 'dtm_gw'
                TableField = 'dtm_gw'
              end
              item
                DatasetField = 'dtm_shipfee'
                TableField = 'dtm_shipfee'
              end
              item
                DatasetField = 'dtm_custom'
                TableField = 'dtm_custom'
              end
              item
                DatasetField = 'dtm_work'
                TableField = 'dtm_work'
              end
              item
                DatasetField = 'dtm_etd'
                TableField = 'dtm_etd'
              end
              item
                DatasetField = 'dtm_eta'
                TableField = 'dtm_eta'
              end
              item
                DatasetField = 'dtm_customno'
                TableField = 'dtm_customno'
              end
              item
                DatasetField = 'dtm_fangxingdate'
                TableField = 'dtm_fangxingdate'
              end
              item
                DatasetField = 'dtm_customdate'
                TableField = 'dtm_customdate'
              end
              item
                DatasetField = 'dtm_taxdate'
                TableField = 'dtm_taxdate'
              end
              item
                DatasetField = 'dtm_paytype'
                TableField = 'dtm_paytype'
              end
              item
                DatasetField = 'dtm_paydate'
                TableField = 'dtm_paydate'
              end
              item
                DatasetField = 'dtm_payamt'
                TableField = 'dtm_payamt'
              end
              item
                DatasetField = 'dtm_state'
                TableField = 'dtm_state'
              end
              item
                DatasetField = 'dtm_hasattachs'
                TableField = 'dtm_hasattachs'
              end
              item
                DatasetField = 'dtm_verificationdate'
                TableField = 'dtm_verificationdate'
              end
              item
                DatasetField = 'dtm_modifydate'
                TableField = 'dtm_modifydate'
              end
              item
                DatasetField = 'dtm_modifystaff'
                TableField = 'dtm_modifystaff'
              end
              item
                DatasetField = 'dtm_createdate'
                TableField = 'dtm_createdate'
              end
              item
                DatasetField = 'dtm_createstaff'
                TableField = 'dtm_createstaff'
              end
              item
                DatasetField = 'dtm_staff'
                TableField = 'dtm_staff'
              end
              item
                DatasetField = 'dtm_staffid'
                TableField = 'dtm_staffid'
              end
              item
                DatasetField = 'dtm_staffiid'
                TableField = 'dtm_staffiid'
              end
              item
                DatasetField = 'dtm_remark'
                TableField = 'dtm_remark'
              end
              item
                DatasetField = 'dtm_pno'
                TableField = 'dtm_pno'
              end>
          end>
        Name = 'd_transportmanage'
        Fields = <
          item
            Name = 'dtm_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dtm_pid'
            DataType = datGuid
          end
          item
            Name = 'dtm_oid'
            DataType = datGuid
          end
          item
            Name = 'dtm_oiid'
            DataType = datInteger
          end
          item
            Name = 'dtm_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dtm_pnos'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dtm_snos'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dtm_pinos'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dtm_rnos'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dtm_shipfrom'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_csimpnames'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dtm_products'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dtm_hscode'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_shipway'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_dealway'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dtm_agent'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_gw'
            DataType = datFloat
          end
          item
            Name = 'dtm_shipfee'
            DataType = datFloat
          end
          item
            Name = 'dtm_custom'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_work'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dtm_etd'
            DataType = datDateTime
          end
          item
            Name = 'dtm_eta'
            DataType = datDateTime
          end
          item
            Name = 'dtm_customno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dtm_fangxingdate'
            DataType = datDateTime
          end
          item
            Name = 'dtm_customdate'
            DataType = datDateTime
          end
          item
            Name = 'dtm_taxdate'
            DataType = datDateTime
          end
          item
            Name = 'dtm_paytype'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_paydate'
            DataType = datDateTime
          end
          item
            Name = 'dtm_payamt'
            DataType = datFloat
          end
          item
            Name = 'dtm_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_hasattachs'
            DataType = datInteger
          end
          item
            Name = 'dtm_verificationdate'
            DataType = datDateTime
          end
          item
            Name = 'dtm_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dtm_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dtm_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtm_staffid'
            DataType = datGuid
          end
          item
            Name = 'dtm_staffiid'
            DataType = datInteger
          end
          item
            Name = 'dtm_remark'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dtm_pno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_productfactory'
            SQL = 
              'SELECT '#10'    bpf_pid, bpf_serial, bpf_fid, bpf_fno, bpf_fsimpname' +
              ', '#10'    bpf_mcode, bpf_rate, bpf_price, bpf_date, bpf_other, '#10'   ' +
              ' bpf_remark'#10'  FROM'#10'    b_productfactory'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bpf_pid'
                TableField = 'bpf_pid'
              end
              item
                DatasetField = 'bpf_serial'
                TableField = 'bpf_serial'
              end
              item
                DatasetField = 'bpf_fid'
                TableField = 'bpf_fid'
              end
              item
                DatasetField = 'bpf_fno'
                TableField = 'bpf_fno'
              end
              item
                DatasetField = 'bpf_fsimpname'
                TableField = 'bpf_fsimpname'
              end
              item
                DatasetField = 'bpf_mcode'
                TableField = 'bpf_mcode'
              end
              item
                DatasetField = 'bpf_rate'
                TableField = 'bpf_rate'
              end
              item
                DatasetField = 'bpf_price'
                TableField = 'bpf_price'
              end
              item
                DatasetField = 'bpf_date'
                TableField = 'bpf_date'
              end
              item
                DatasetField = 'bpf_other'
                TableField = 'bpf_other'
              end
              item
                DatasetField = 'bpf_remark'
                TableField = 'bpf_remark'
              end>
          end>
        Name = 'b_productfactory'
        Fields = <
          item
            Name = 'bpf_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bpf_serial'
            DataType = datAutoInc
            GeneratorName = 'b_productfactory'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'bpf_fid'
            DataType = datGuid
          end
          item
            Name = 'bpf_fno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'bpf_fsimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'bpf_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'bpf_rate'
            DataType = datFloat
          end
          item
            Name = 'bpf_price'
            DataType = datFloat
          end
          item
            Name = 'bpf_date'
            DataType = datDateTime
          end
          item
            Name = 'bpf_other'
            DataType = datString
            Size = 60
          end
          item
            Name = 'bpf_remark'
            DataType = datString
            Size = 120
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_customer'
            SQL = 'SELECT '#10'    bc_cnname'#10'  FROM'#10'    b_customer'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bc_cnname'
                TableField = 'bc_cnname'
              end>
          end>
        Name = 'ccn_name'
        Fields = <
          item
            Name = 'bc_cnname'
            DataType = datString
            Size = 60
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_factory'
            SQL = 'SELECT '#10'    bf_cnname'#10'  FROM'#10'    b_factory'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bf_cnname'
                TableField = 'bf_cnname'
              end>
          end>
        Name = 'fcn_name'
        Fields = <
          item
            Name = 'bf_cnname'
            DataType = datString
            Size = 60
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_manageproblem'
            SQL = 
              'SELECT '#10'    dmp_id, dmp_createstaff, dmp_createdate, dmp_title, ' +
              #10'    dmp_desc, dmp_remark, dmp_type, dmp_state, dmp_billno, '#10'   ' +
              ' dmp_color, dmp_createstaffid, dmp_modifystaff,dmp_modifydate'#10'  ' +
              'FROM'#10'    d_manageproblem'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dmp_id'
                TableField = 'dmp_id'
              end
              item
                DatasetField = 'dmp_createstaff'
                TableField = 'dmp_createstaff'
              end
              item
                DatasetField = 'dmp_createdate'
                TableField = 'dmp_createdate'
              end
              item
                DatasetField = 'dmp_title'
                TableField = 'dmp_title'
              end
              item
                DatasetField = 'dmp_desc'
                TableField = 'dmp_desc'
              end
              item
                DatasetField = 'dmp_remark'
                TableField = 'dmp_remark'
              end
              item
                DatasetField = 'dmp_type'
                TableField = 'dmp_type'
              end
              item
                DatasetField = 'dmp_state'
                TableField = 'dmp_state'
              end
              item
                DatasetField = 'dmp_billno'
                TableField = 'dmp_billno'
              end
              item
                DatasetField = 'dmp_color'
                TableField = 'dmp_color'
              end
              item
                DatasetField = 'dmp_createstaffid'
                TableField = 'dmp_createstaffid'
              end
              item
                DatasetField = 'dmp_modifystaff'
                TableField = 'dmp_modifystaff'
              end
              item
                DatasetField = 'dmp_modifydate'
                TableField = 'dmp_modifydate'
              end>
          end>
        Name = 'd_manageproblem'
        Fields = <
          item
            Name = 'dmp_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dmp_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dmp_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dmp_title'
            DataType = datString
            Size = 400
          end
          item
            Name = 'dmp_desc'
            DataType = datString
            Size = 2000
          end
          item
            Name = 'dmp_remark'
            DataType = datString
            Size = 400
          end
          item
            Name = 'dmp_type'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dmp_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dmp_billno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dmp_color'
            DataType = datInteger
          end
          item
            Name = 'dmp_createstaffid'
            DataType = datGuid
          end
          item
            Name = 'dmp_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dmp_modifydate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousetransfer'
            SQL = 
              'SELECT '#10'    dwht_id, dwht_no, dwht_date, dwht_inid, dwht_inname,' +
              ' '#10'    dwht_outid, dwht_outname, dwht_createstaff, dwht_createdat' +
              'e, '#10'    dwht_modifystaff, dwht_modifydate, dwht_qty, dwht_amt, '#10 +
              '    dwht_remark, dwht_checkrequeststaff, dwht_checkrequestid, '#10' ' +
              '   dwht_checkstaff, dwht_checkdate, dwht_state, dwht_oid, '#10'    d' +
              'wht_osimpname, dwht_oiid'#10'  FROM'#10'    d_warehousetransfer'#10'  WHERE ' +
              '{Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwht_id'
                TableField = 'dwht_id'
              end
              item
                DatasetField = 'dwht_no'
                TableField = 'dwht_no'
              end
              item
                DatasetField = 'dwht_date'
                TableField = 'dwht_date'
              end
              item
                DatasetField = 'dwht_inid'
                TableField = 'dwht_inid'
              end
              item
                DatasetField = 'dwht_inname'
                TableField = 'dwht_inname'
              end
              item
                DatasetField = 'dwht_outid'
                TableField = 'dwht_outid'
              end
              item
                DatasetField = 'dwht_outname'
                TableField = 'dwht_outname'
              end
              item
                DatasetField = 'dwht_createstaff'
                TableField = 'dwht_createstaff'
              end
              item
                DatasetField = 'dwht_createdate'
                TableField = 'dwht_createdate'
              end
              item
                DatasetField = 'dwht_modifystaff'
                TableField = 'dwht_modifystaff'
              end
              item
                DatasetField = 'dwht_modifydate'
                TableField = 'dwht_modifydate'
              end
              item
                DatasetField = 'dwht_qty'
                TableField = 'dwht_qty'
              end
              item
                DatasetField = 'dwht_amt'
                TableField = 'dwht_amt'
              end
              item
                DatasetField = 'dwht_remark'
                TableField = 'dwht_remark'
              end
              item
                DatasetField = 'dwht_checkrequeststaff'
                TableField = 'dwht_checkrequeststaff'
              end
              item
                DatasetField = 'dwht_checkrequestid'
                TableField = 'dwht_checkrequestid'
              end
              item
                DatasetField = 'dwht_checkstaff'
                TableField = 'dwht_checkstaff'
              end
              item
                DatasetField = 'dwht_checkdate'
                TableField = 'dwht_checkdate'
              end
              item
                DatasetField = 'dwht_state'
                TableField = 'dwht_state'
              end
              item
                DatasetField = 'dwht_oid'
                TableField = 'dwht_oid'
              end
              item
                DatasetField = 'dwht_osimpname'
                TableField = 'dwht_osimpname'
              end
              item
                DatasetField = 'dwht_oiid'
                TableField = 'dwht_oiid'
              end>
          end>
        Name = 'd_warehousetransfer'
        Fields = <
          item
            Name = 'dwht_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwht_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwht_date'
            DataType = datDateTime
          end
          item
            Name = 'dwht_inid'
            DataType = datGuid
          end
          item
            Name = 'dwht_inname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwht_outid'
            DataType = datGuid
          end
          item
            Name = 'dwht_outname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwht_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwht_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dwht_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwht_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dwht_qty'
            DataType = datFloat
          end
          item
            Name = 'dwht_amt'
            DataType = datFloat
          end
          item
            Name = 'dwht_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dwht_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwht_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dwht_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwht_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dwht_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwht_oid'
            DataType = datGuid
          end
          item
            Name = 'dwht_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwht_oiid'
            DataType = datInteger
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousetransferitem'
            SQL = 
              'SELECT '#10'    dwti_pid, dwti_serial, dwti_productid, dwti_productn' +
              'o, '#10'    dwti_productrealno, dwti_productname, dwti_productcnname' +
              ', '#10'    dwti_productenname, dwti_productdesc, dwti_sellmcode, '#10'  ' +
              '  dwti_sellrate, dwti_sellprice, dwti_sellamt, dwti_sellamtrmb, ' +
              #10'    dwti_gw, dwti_gwamt, dwti_qty, dwti_stockqty, dwti_unit, '#10' ' +
              '   dwti_buyamt, dwti_buyamtrmb, dwti_buyprice, dwti_remark,dwti_' +
              'inid,dwti_outid'#10'  FROM'#10'    d_warehousetransferitem'#10'  WHERE {Wher' +
              'e}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwti_pid'
                TableField = 'dwti_pid'
              end
              item
                DatasetField = 'dwti_serial'
                TableField = 'dwti_serial'
              end
              item
                DatasetField = 'dwti_productid'
                TableField = 'dwti_productid'
              end
              item
                DatasetField = 'dwti_productno'
                TableField = 'dwti_productno'
              end
              item
                DatasetField = 'dwti_productrealno'
                TableField = 'dwti_productrealno'
              end
              item
                DatasetField = 'dwti_productname'
                TableField = 'dwti_productname'
              end
              item
                DatasetField = 'dwti_productcnname'
                TableField = 'dwti_productcnname'
              end
              item
                DatasetField = 'dwti_productenname'
                TableField = 'dwti_productenname'
              end
              item
                DatasetField = 'dwti_productdesc'
                TableField = 'dwti_productdesc'
              end
              item
                DatasetField = 'dwti_sellmcode'
                TableField = 'dwti_sellmcode'
              end
              item
                DatasetField = 'dwti_sellrate'
                TableField = 'dwti_sellrate'
              end
              item
                DatasetField = 'dwti_sellprice'
                TableField = 'dwti_sellprice'
              end
              item
                DatasetField = 'dwti_sellamt'
                TableField = 'dwti_sellamt'
              end
              item
                DatasetField = 'dwti_sellamtrmb'
                TableField = 'dwti_sellamtrmb'
              end
              item
                DatasetField = 'dwti_gw'
                TableField = 'dwti_gw'
              end
              item
                DatasetField = 'dwti_gwamt'
                TableField = 'dwti_gwamt'
              end
              item
                DatasetField = 'dwti_qty'
                TableField = 'dwti_qty'
              end
              item
                DatasetField = 'dwti_stockqty'
                TableField = 'dwti_stockqty'
              end
              item
                DatasetField = 'dwti_unit'
                TableField = 'dwti_unit'
              end
              item
                DatasetField = 'dwti_buyamt'
                TableField = 'dwti_buyamt'
              end
              item
                DatasetField = 'dwti_buyamtrmb'
                TableField = 'dwti_buyamtrmb'
              end
              item
                DatasetField = 'dwti_buyprice'
                TableField = 'dwti_buyprice'
              end
              item
                DatasetField = 'dwti_remark'
                TableField = 'dwti_remark'
              end
              item
                DatasetField = 'dwti_inid'
                TableField = 'dwti_inid'
              end
              item
                DatasetField = 'dwti_outid'
                TableField = 'dwti_outid'
              end>
          end>
        Name = 'd_warehousetransferitem'
        Fields = <
          item
            Name = 'dwti_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwti_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwti_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwti_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwti_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwti_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwti_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwti_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwti_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwti_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwti_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwti_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwti_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwti_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwti_gw'
            DataType = datFloat
          end
          item
            Name = 'dwti_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwti_qty'
            DataType = datFloat
          end
          item
            Name = 'dwti_stockqty'
            DataType = datFloat
          end
          item
            Name = 'dwti_unit'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwti_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dwti_buyamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwti_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dwti_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwti_inid'
            DataType = datGuid
          end
          item
            Name = 'dwti_outid'
            DataType = datGuid
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouseborrow'
            SQL = 
              'SELECT '#10'    dwhb_id, dwhb_no, dwhb_date, dwhb_outid, dwhb_outnam' +
              'e, '#10'    dwhb_createstaff, dwhb_createdate, dwhb_modifystaff, '#10'  ' +
              '  dwhb_modifydate, dwhb_qty, dwhb_amt, dwhb_remark, dwhb_checkre' +
              'queststaff, '#10'    dwhb_checkrequestid, dwhb_checkstaff, dwhb_chec' +
              'kdate, '#10'    dwhb_state, dwhb_oid, dwhb_osimpname, dwhb_oiid, dwh' +
              'b_staff'#10'  FROM'#10'    d_warehouseborrow'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwhb_id'
                TableField = 'dwhb_id'
              end
              item
                DatasetField = 'dwhb_no'
                TableField = 'dwhb_no'
              end
              item
                DatasetField = 'dwhb_date'
                TableField = 'dwhb_date'
              end
              item
                DatasetField = 'dwhb_outid'
                TableField = 'dwhb_outid'
              end
              item
                DatasetField = 'dwhb_outname'
                TableField = 'dwhb_outname'
              end
              item
                DatasetField = 'dwhb_createstaff'
                TableField = 'dwhb_createstaff'
              end
              item
                DatasetField = 'dwhb_createdate'
                TableField = 'dwhb_createdate'
              end
              item
                DatasetField = 'dwhb_modifystaff'
                TableField = 'dwhb_modifystaff'
              end
              item
                DatasetField = 'dwhb_modifydate'
                TableField = 'dwhb_modifydate'
              end
              item
                DatasetField = 'dwhb_qty'
                TableField = 'dwhb_qty'
              end
              item
                DatasetField = 'dwhb_amt'
                TableField = 'dwhb_amt'
              end
              item
                DatasetField = 'dwhb_remark'
                TableField = 'dwhb_remark'
              end
              item
                DatasetField = 'dwhb_checkrequeststaff'
                TableField = 'dwhb_checkrequeststaff'
              end
              item
                DatasetField = 'dwhb_checkrequestid'
                TableField = 'dwhb_checkrequestid'
              end
              item
                DatasetField = 'dwhb_checkstaff'
                TableField = 'dwhb_checkstaff'
              end
              item
                DatasetField = 'dwhb_checkdate'
                TableField = 'dwhb_checkdate'
              end
              item
                DatasetField = 'dwhb_state'
                TableField = 'dwhb_state'
              end
              item
                DatasetField = 'dwhb_oid'
                TableField = 'dwhb_oid'
              end
              item
                DatasetField = 'dwhb_osimpname'
                TableField = 'dwhb_osimpname'
              end
              item
                DatasetField = 'dwhb_oiid'
                TableField = 'dwhb_oiid'
              end
              item
                DatasetField = 'dwhb_staff'
                TableField = 'dwhb_staff'
              end>
          end>
        Name = 'd_warehouseborrow'
        Fields = <
          item
            Name = 'dwhb_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwhb_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhb_date'
            DataType = datDateTime
          end
          item
            Name = 'dwhb_outid'
            DataType = datGuid
          end
          item
            Name = 'dwhb_outname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhb_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhb_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhb_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhb_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dwhb_qty'
            DataType = datFloat
          end
          item
            Name = 'dwhb_amt'
            DataType = datFloat
          end
          item
            Name = 'dwhb_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dwhb_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhb_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dwhb_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhb_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhb_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhb_oid'
            DataType = datGuid
          end
          item
            Name = 'dwhb_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhb_oiid'
            DataType = datInteger
          end
          item
            Name = 'dwhb_staff'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouseborrowitem'
            SQL = 
              'SELECT '#10'    dwbi_pid, dwbi_serial, dwbi_productid, dwbi_productn' +
              'o, '#10'    dwbi_productrealno, dwbi_productname, dwbi_productcnname' +
              ', '#10'    dwbi_productenname, dwbi_productdesc, dwbi_sellmcode, '#10'  ' +
              '  dwbi_sellrate, dwbi_sellprice, dwbi_sellamt, dwbi_sellamtrmb, ' +
              #10'    dwbi_gw, dwbi_gwamt, dwbi_qty, dwbi_stockqty, dwbi_unit, '#10' ' +
              '   dwbi_buyamt, dwbi_buyamtrmb, dwbi_buyprice, dwbi_remark,dwbi_' +
              'whid'#10'  FROM'#10'    d_warehouseborrowitem'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwbi_pid'
                TableField = 'dwbi_pid'
              end
              item
                DatasetField = 'dwbi_serial'
                TableField = 'dwbi_serial'
              end
              item
                DatasetField = 'dwbi_productid'
                TableField = 'dwbi_productid'
              end
              item
                DatasetField = 'dwbi_productno'
                TableField = 'dwbi_productno'
              end
              item
                DatasetField = 'dwbi_productrealno'
                TableField = 'dwbi_productrealno'
              end
              item
                DatasetField = 'dwbi_productname'
                TableField = 'dwbi_productname'
              end
              item
                DatasetField = 'dwbi_productcnname'
                TableField = 'dwbi_productcnname'
              end
              item
                DatasetField = 'dwbi_productenname'
                TableField = 'dwbi_productenname'
              end
              item
                DatasetField = 'dwbi_productdesc'
                TableField = 'dwbi_productdesc'
              end
              item
                DatasetField = 'dwbi_sellmcode'
                TableField = 'dwbi_sellmcode'
              end
              item
                DatasetField = 'dwbi_sellrate'
                TableField = 'dwbi_sellrate'
              end
              item
                DatasetField = 'dwbi_sellprice'
                TableField = 'dwbi_sellprice'
              end
              item
                DatasetField = 'dwbi_sellamt'
                TableField = 'dwbi_sellamt'
              end
              item
                DatasetField = 'dwbi_sellamtrmb'
                TableField = 'dwbi_sellamtrmb'
              end
              item
                DatasetField = 'dwbi_gw'
                TableField = 'dwbi_gw'
              end
              item
                DatasetField = 'dwbi_gwamt'
                TableField = 'dwbi_gwamt'
              end
              item
                DatasetField = 'dwbi_qty'
                TableField = 'dwbi_qty'
              end
              item
                DatasetField = 'dwbi_stockqty'
                TableField = 'dwbi_stockqty'
              end
              item
                DatasetField = 'dwbi_unit'
                TableField = 'dwbi_unit'
              end
              item
                DatasetField = 'dwbi_buyamt'
                TableField = 'dwbi_buyamt'
              end
              item
                DatasetField = 'dwbi_buyamtrmb'
                TableField = 'dwbi_buyamtrmb'
              end
              item
                DatasetField = 'dwbi_buyprice'
                TableField = 'dwbi_buyprice'
              end
              item
                DatasetField = 'dwbi_remark'
                TableField = 'dwbi_remark'
              end
              item
                DatasetField = 'dwbi_whid'
                TableField = 'dwbi_whid'
              end>
          end>
        Name = 'd_warehouseborrowitem'
        Fields = <
          item
            Name = 'dwbi_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwbi_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwbi_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwbi_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwbi_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwbi_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwbi_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwbi_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwbi_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwbi_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwbi_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwbi_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwbi_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwbi_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwbi_gw'
            DataType = datFloat
          end
          item
            Name = 'dwbi_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwbi_qty'
            DataType = datFloat
          end
          item
            Name = 'dwbi_stockqty'
            DataType = datFloat
          end
          item
            Name = 'dwbi_unit'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwbi_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dwbi_buyamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwbi_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dwbi_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwbi_whid'
            DataType = datGuid
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousereturn'
            SQL = 
              'SELECT '#10'    dwhr_id, dwhr_no, dwhr_date, dwhr_inid, dwhr_inname,' +
              ' '#10'    dwhr_createstaff, dwhr_createdate, dwhr_modifystaff, '#10'    ' +
              'dwhr_modifydate, dwhr_qty, dwhr_amt, dwhr_remark, dwhr_checkrequ' +
              'eststaff, '#10'    dwhr_checkrequestid, dwhr_checkstaff, dwhr_checkd' +
              'ate, '#10'    dwhr_state, dwhr_oid, dwhr_osimpname, dwhr_oiid, dwhr_' +
              'bid, dwhr_staff,'#10'    dwhr_bno'#10'  FROM'#10'    d_warehousereturn'#10'  WHE' +
              'RE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwhr_id'
                TableField = 'dwhr_id'
              end
              item
                DatasetField = 'dwhr_no'
                TableField = 'dwhr_no'
              end
              item
                DatasetField = 'dwhr_date'
                TableField = 'dwhr_date'
              end
              item
                DatasetField = 'dwhr_inid'
                TableField = 'dwhr_inid'
              end
              item
                DatasetField = 'dwhr_inname'
                TableField = 'dwhr_inname'
              end
              item
                DatasetField = 'dwhr_createstaff'
                TableField = 'dwhr_createstaff'
              end
              item
                DatasetField = 'dwhr_createdate'
                TableField = 'dwhr_createdate'
              end
              item
                DatasetField = 'dwhr_modifystaff'
                TableField = 'dwhr_modifystaff'
              end
              item
                DatasetField = 'dwhr_modifydate'
                TableField = 'dwhr_modifydate'
              end
              item
                DatasetField = 'dwhr_qty'
                TableField = 'dwhr_qty'
              end
              item
                DatasetField = 'dwhr_amt'
                TableField = 'dwhr_amt'
              end
              item
                DatasetField = 'dwhr_remark'
                TableField = 'dwhr_remark'
              end
              item
                DatasetField = 'dwhr_checkrequeststaff'
                TableField = 'dwhr_checkrequeststaff'
              end
              item
                DatasetField = 'dwhr_checkrequestid'
                TableField = 'dwhr_checkrequestid'
              end
              item
                DatasetField = 'dwhr_checkstaff'
                TableField = 'dwhr_checkstaff'
              end
              item
                DatasetField = 'dwhr_checkdate'
                TableField = 'dwhr_checkdate'
              end
              item
                DatasetField = 'dwhr_state'
                TableField = 'dwhr_state'
              end
              item
                DatasetField = 'dwhr_oid'
                TableField = 'dwhr_oid'
              end
              item
                DatasetField = 'dwhr_osimpname'
                TableField = 'dwhr_osimpname'
              end
              item
                DatasetField = 'dwhr_oiid'
                TableField = 'dwhr_oiid'
              end
              item
                DatasetField = 'dwhr_bid'
                TableField = 'dwhr_bid'
              end
              item
                DatasetField = 'dwhr_bno'
                TableField = 'dwhr_bno'
              end
              item
                DatasetField = 'dwhr_staff'
                TableField = 'dwhr_staff'
              end>
          end>
        Name = 'd_warehousereturn'
        Fields = <
          item
            Name = 'dwhr_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwhr_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhr_date'
            DataType = datDateTime
          end
          item
            Name = 'dwhr_inid'
            DataType = datGuid
          end
          item
            Name = 'dwhr_inname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhr_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dwhr_qty'
            DataType = datFloat
          end
          item
            Name = 'dwhr_amt'
            DataType = datFloat
          end
          item
            Name = 'dwhr_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dwhr_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dwhr_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhr_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhr_oid'
            DataType = datGuid
          end
          item
            Name = 'dwhr_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_oiid'
            DataType = datInteger
          end
          item
            Name = 'dwhr_bid'
            DataType = datGuid
          end
          item
            Name = 'dwhr_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_bno'
            DataType = datString
            Size = 20
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousereturnitem'
            SQL = 
              'SELECT '#10'    dwri_pid, dwri_serial, dwri_productid, dwri_productn' +
              'o, '#10'    dwri_productrealno, dwri_productname, dwri_productcnname' +
              ', '#10'    dwri_productenname, dwri_productdesc, dwri_sellmcode, '#10'  ' +
              '  dwri_sellrate, dwri_sellprice, dwri_sellamt, dwri_sellamtrmb, ' +
              #10'    dwri_gw, dwri_gwamt, dwri_qty, dwri_stockqty, dwri_unit, '#10' ' +
              '   dwri_buyamt, dwri_buyamtrmb, dwri_buyprice, dwri_remark, dwri' +
              '_whid,dwri_bid,dwri_bno'#10'  FROM'#10'    d_warehousereturnitem'#10'  WHERE' +
              ' {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwri_pid'
                TableField = 'dwri_pid'
              end
              item
                DatasetField = 'dwri_serial'
                TableField = 'dwri_serial'
              end
              item
                DatasetField = 'dwri_productid'
                TableField = 'dwri_productid'
              end
              item
                DatasetField = 'dwri_productno'
                TableField = 'dwri_productno'
              end
              item
                DatasetField = 'dwri_productrealno'
                TableField = 'dwri_productrealno'
              end
              item
                DatasetField = 'dwri_productname'
                TableField = 'dwri_productname'
              end
              item
                DatasetField = 'dwri_productcnname'
                TableField = 'dwri_productcnname'
              end
              item
                DatasetField = 'dwri_productenname'
                TableField = 'dwri_productenname'
              end
              item
                DatasetField = 'dwri_productdesc'
                TableField = 'dwri_productdesc'
              end
              item
                DatasetField = 'dwri_sellmcode'
                TableField = 'dwri_sellmcode'
              end
              item
                DatasetField = 'dwri_sellrate'
                TableField = 'dwri_sellrate'
              end
              item
                DatasetField = 'dwri_sellprice'
                TableField = 'dwri_sellprice'
              end
              item
                DatasetField = 'dwri_sellamt'
                TableField = 'dwri_sellamt'
              end
              item
                DatasetField = 'dwri_sellamtrmb'
                TableField = 'dwri_sellamtrmb'
              end
              item
                DatasetField = 'dwri_gw'
                TableField = 'dwri_gw'
              end
              item
                DatasetField = 'dwri_gwamt'
                TableField = 'dwri_gwamt'
              end
              item
                DatasetField = 'dwri_qty'
                TableField = 'dwri_qty'
              end
              item
                DatasetField = 'dwri_stockqty'
                TableField = 'dwri_stockqty'
              end
              item
                DatasetField = 'dwri_unit'
                TableField = 'dwri_unit'
              end
              item
                DatasetField = 'dwri_buyamt'
                TableField = 'dwri_buyamt'
              end
              item
                DatasetField = 'dwri_buyamtrmb'
                TableField = 'dwri_buyamtrmb'
              end
              item
                DatasetField = 'dwri_buyprice'
                TableField = 'dwri_buyprice'
              end
              item
                DatasetField = 'dwri_remark'
                TableField = 'dwri_remark'
              end
              item
                DatasetField = 'dwri_whid'
                TableField = 'dwri_whid'
              end
              item
                DatasetField = 'dwri_bid'
                TableField = 'dwri_bid'
              end
              item
                DatasetField = 'dwri_bno'
                TableField = 'dwri_bno'
              end>
          end>
        Name = 'd_warehousereturnitem'
        Fields = <
          item
            Name = 'dwri_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwri_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwri_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwri_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwri_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwri_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwri_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwri_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwri_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwri_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwri_gw'
            DataType = datFloat
          end
          item
            Name = 'dwri_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwri_qty'
            DataType = datFloat
          end
          item
            Name = 'dwri_stockqty'
            DataType = datFloat
          end
          item
            Name = 'dwri_unit'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwri_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dwri_buyamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwri_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dwri_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_whid'
            DataType = datGuid
          end
          item
            Name = 'dwri_bid'
            DataType = datGuid
          end
          item
            Name = 'dwri_bno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_pendingproject'
            SQL = 
              'SELECT '#10'    dpp_id, dpp_no, dpp_date, dpp_createstaff, dpp_creat' +
              'edate, '#10'    dpp_modifystaff, dpp_modifydate, dpp_qty, dpp_remark' +
              ', '#10'    dpp_oid, dpp_osimpname, dpp_oiid, dpp_products, dpp_desc,' +
              ' '#10'    dpp_state, dpp_staff, dpp_staffid, dpp_tjr, dpp_pgr, '#10'    ' +
              'dpp_lzsj'#10'  FROM'#10'    d_pendingproject'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dpp_id'
                TableField = 'dpp_id'
              end
              item
                DatasetField = 'dpp_no'
                TableField = 'dpp_no'
              end
              item
                DatasetField = 'dpp_date'
                TableField = 'dpp_date'
              end
              item
                DatasetField = 'dpp_createstaff'
                TableField = 'dpp_createstaff'
              end
              item
                DatasetField = 'dpp_createdate'
                TableField = 'dpp_createdate'
              end
              item
                DatasetField = 'dpp_modifystaff'
                TableField = 'dpp_modifystaff'
              end
              item
                DatasetField = 'dpp_modifydate'
                TableField = 'dpp_modifydate'
              end
              item
                DatasetField = 'dpp_qty'
                TableField = 'dpp_qty'
              end
              item
                DatasetField = 'dpp_remark'
                TableField = 'dpp_remark'
              end
              item
                DatasetField = 'dpp_oid'
                TableField = 'dpp_oid'
              end
              item
                DatasetField = 'dpp_osimpname'
                TableField = 'dpp_osimpname'
              end
              item
                DatasetField = 'dpp_oiid'
                TableField = 'dpp_oiid'
              end
              item
                DatasetField = 'dpp_products'
                TableField = 'dpp_products'
              end
              item
                DatasetField = 'dpp_desc'
                TableField = 'dpp_desc'
              end
              item
                DatasetField = 'dpp_state'
                TableField = 'dpp_state'
              end
              item
                DatasetField = 'dpp_staff'
                TableField = 'dpp_staff'
              end
              item
                DatasetField = 'dpp_staffid'
                TableField = 'dpp_staffid'
              end
              item
                DatasetField = 'dpp_tjr'
                TableField = 'dpp_tjr'
              end
              item
                DatasetField = 'dpp_pgr'
                TableField = 'dpp_pgr'
              end
              item
                DatasetField = 'dpp_lzsj'
                TableField = 'dpp_lzsj'
              end>
          end>
        Name = 'd_pendingproject'
        Fields = <
          item
            Name = 'dpp_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dpp_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dpp_date'
            DataType = datDateTime
          end
          item
            Name = 'dpp_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpp_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dpp_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpp_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dpp_qty'
            DataType = datFloat
          end
          item
            Name = 'dpp_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dpp_oid'
            DataType = datGuid
          end
          item
            Name = 'dpp_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpp_oiid'
            DataType = datInteger
          end
          item
            Name = 'dpp_products'
            DataType = datString
            Size = 300
          end
          item
            Name = 'dpp_desc'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dpp_state'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dpp_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpp_staffid'
            DataType = datGuid
          end
          item
            Name = 'dpp_tjr'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpp_pgr'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dpp_lzsj'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouseoutitem2'
            SQL = 
              'SELECT '#10'    dwoi2_pid, dwoi2_serial, dwoi2_productid, dwoi2_pack' +
              'ingno, '#10'    dwoi2_nw, dwoi2_voldesc, dwoi2_vol, dwoi2_productno,' +
              ' '#10'    dwoi2_productrealno, dwoi2_productname, dwoi2_productcnnam' +
              'e, '#10'    dwoi2_productenname, dwoi2_productdesc, dwoi2_sellmcode,' +
              ' '#10'    dwoi2_sellrate, dwoi2_sellprice, dwoi2_sellamt, dwoi2_sell' +
              'amtrmb, '#10'    dwoi2_qty, dwoi2_unit, dwoi2_gw, dwoi2_gwamt, dwoi2' +
              '_remark, '#10'    dwoi2_whid'#10'  FROM'#10'    d_warehouseoutitem2'#10'  WHERE ' +
              '{Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwoi2_pid'
                TableField = 'dwoi2_pid'
              end
              item
                DatasetField = 'dwoi2_serial'
                TableField = 'dwoi2_serial'
              end
              item
                DatasetField = 'dwoi2_productid'
                TableField = 'dwoi2_productid'
              end
              item
                DatasetField = 'dwoi2_packingno'
                TableField = 'dwoi2_packingno'
              end
              item
                DatasetField = 'dwoi2_nw'
                TableField = 'dwoi2_nw'
              end
              item
                DatasetField = 'dwoi2_voldesc'
                TableField = 'dwoi2_voldesc'
              end
              item
                DatasetField = 'dwoi2_vol'
                TableField = 'dwoi2_vol'
              end
              item
                DatasetField = 'dwoi2_productno'
                TableField = 'dwoi2_productno'
              end
              item
                DatasetField = 'dwoi2_productrealno'
                TableField = 'dwoi2_productrealno'
              end
              item
                DatasetField = 'dwoi2_productname'
                TableField = 'dwoi2_productname'
              end
              item
                DatasetField = 'dwoi2_productcnname'
                TableField = 'dwoi2_productcnname'
              end
              item
                DatasetField = 'dwoi2_productenname'
                TableField = 'dwoi2_productenname'
              end
              item
                DatasetField = 'dwoi2_productdesc'
                TableField = 'dwoi2_productdesc'
              end
              item
                DatasetField = 'dwoi2_sellmcode'
                TableField = 'dwoi2_sellmcode'
              end
              item
                DatasetField = 'dwoi2_sellrate'
                TableField = 'dwoi2_sellrate'
              end
              item
                DatasetField = 'dwoi2_sellprice'
                TableField = 'dwoi2_sellprice'
              end
              item
                DatasetField = 'dwoi2_sellamt'
                TableField = 'dwoi2_sellamt'
              end
              item
                DatasetField = 'dwoi2_sellamtrmb'
                TableField = 'dwoi2_sellamtrmb'
              end
              item
                DatasetField = 'dwoi2_qty'
                TableField = 'dwoi2_qty'
              end
              item
                DatasetField = 'dwoi2_unit'
                TableField = 'dwoi2_unit'
              end
              item
                DatasetField = 'dwoi2_gw'
                TableField = 'dwoi2_gw'
              end
              item
                DatasetField = 'dwoi2_gwamt'
                TableField = 'dwoi2_gwamt'
              end
              item
                DatasetField = 'dwoi2_remark'
                TableField = 'dwoi2_remark'
              end
              item
                DatasetField = 'dwoi2_whid'
                TableField = 'dwoi2_whid'
              end>
          end>
        Name = 'd_warehouseoutitem2'
        Fields = <
          item
            Name = 'dwoi2_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwoi2_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwoi2_productid'
            DataType = datGuid
          end
          item
            Name = 'dwoi2_packingno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwoi2_nw'
            DataType = datFloat
          end
          item
            Name = 'dwoi2_voldesc'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwoi2_vol'
            DataType = datFloat
          end
          item
            Name = 'dwoi2_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwoi2_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwoi2_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwoi2_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwoi2_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwoi2_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwoi2_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwoi2_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwoi2_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwoi2_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwoi2_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwoi2_qty'
            DataType = datFloat
          end
          item
            Name = 'dwoi2_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwoi2_gw'
            DataType = datFloat
          end
          item
            Name = 'dwoi2_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwoi2_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dwoi2_whid'
            DataType = datGuid
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousereceive'
            SQL = 
              'SELECT '#10'    dwhr_id, dwhr_no, dwhr_date, dwhr_wid, dwhr_wname, '#10 +
              '    dwhr_createstaff, dwhr_createdate, dwhr_modifystaff, '#10'    dw' +
              'hr_modifydate, dwhr_qty, dwhr_amt, dwhr_remark, dwhr_checkreques' +
              'tstaff, '#10'    dwhr_checkrequestid, dwhr_checkstaff, dwhr_checkdat' +
              'e, '#10'    dwhr_state, dwhr_oid, dwhr_osimpname, dwhr_oiid,dwhr_sta' +
              'ff'#10'  FROM'#10'    d_warehousereceive'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwhr_id'
                TableField = 'dwhr_id'
              end
              item
                DatasetField = 'dwhr_no'
                TableField = 'dwhr_no'
              end
              item
                DatasetField = 'dwhr_date'
                TableField = 'dwhr_date'
              end
              item
                DatasetField = 'dwhr_wid'
                TableField = 'dwhr_wid'
              end
              item
                DatasetField = 'dwhr_wname'
                TableField = 'dwhr_wname'
              end
              item
                DatasetField = 'dwhr_createstaff'
                TableField = 'dwhr_createstaff'
              end
              item
                DatasetField = 'dwhr_createdate'
                TableField = 'dwhr_createdate'
              end
              item
                DatasetField = 'dwhr_modifystaff'
                TableField = 'dwhr_modifystaff'
              end
              item
                DatasetField = 'dwhr_modifydate'
                TableField = 'dwhr_modifydate'
              end
              item
                DatasetField = 'dwhr_qty'
                TableField = 'dwhr_qty'
              end
              item
                DatasetField = 'dwhr_amt'
                TableField = 'dwhr_amt'
              end
              item
                DatasetField = 'dwhr_remark'
                TableField = 'dwhr_remark'
              end
              item
                DatasetField = 'dwhr_checkrequeststaff'
                TableField = 'dwhr_checkrequeststaff'
              end
              item
                DatasetField = 'dwhr_checkrequestid'
                TableField = 'dwhr_checkrequestid'
              end
              item
                DatasetField = 'dwhr_checkstaff'
                TableField = 'dwhr_checkstaff'
              end
              item
                DatasetField = 'dwhr_checkdate'
                TableField = 'dwhr_checkdate'
              end
              item
                DatasetField = 'dwhr_state'
                TableField = 'dwhr_state'
              end
              item
                DatasetField = 'dwhr_oid'
                TableField = 'dwhr_oid'
              end
              item
                DatasetField = 'dwhr_osimpname'
                TableField = 'dwhr_osimpname'
              end
              item
                DatasetField = 'dwhr_oiid'
                TableField = 'dwhr_oiid'
              end
              item
                DatasetField = 'dwhr_staff'
                TableField = 'dwhr_staff'
              end>
          end>
        Name = 'd_warehousereceive'
        Fields = <
          item
            Name = 'dwhr_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwhr_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhr_date'
            DataType = datDateTime
          end
          item
            Name = 'dwhr_wid'
            DataType = datGuid
          end
          item
            Name = 'dwhr_wname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhr_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dwhr_qty'
            DataType = datFloat
          end
          item
            Name = 'dwhr_amt'
            DataType = datFloat
          end
          item
            Name = 'dwhr_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dwhr_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dwhr_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhr_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhr_oid'
            DataType = datGuid
          end
          item
            Name = 'dwhr_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhr_oiid'
            DataType = datInteger
          end
          item
            Name = 'dwhr_staff'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehousereceiveitem'
            SQL = 
              'SELECT '#10'    dwri_pid, dwri_serial, dwri_productid, dwri_productn' +
              'o, '#10'    dwri_productrealno, dwri_productname, dwri_productcnname' +
              ', '#10'    dwri_productenname, dwri_productdesc, dwri_sellmcode, '#10'  ' +
              '  dwri_sellrate, dwri_sellprice, dwri_sellamt, dwri_sellamtrmb, ' +
              #10'    dwri_gw, dwri_gwamt, dwri_qty, dwri_stockqty, dwri_unit, '#10' ' +
              '   dwri_buyamt, dwri_buyamtrmb, dwri_buyprice, dwri_remark,dwri_' +
              'whid'#10'  FROM'#10'    d_warehousereceiveitem'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwri_pid'
                TableField = 'dwri_pid'
              end
              item
                DatasetField = 'dwri_serial'
                TableField = 'dwri_serial'
              end
              item
                DatasetField = 'dwri_productid'
                TableField = 'dwri_productid'
              end
              item
                DatasetField = 'dwri_productno'
                TableField = 'dwri_productno'
              end
              item
                DatasetField = 'dwri_productrealno'
                TableField = 'dwri_productrealno'
              end
              item
                DatasetField = 'dwri_productname'
                TableField = 'dwri_productname'
              end
              item
                DatasetField = 'dwri_productcnname'
                TableField = 'dwri_productcnname'
              end
              item
                DatasetField = 'dwri_productenname'
                TableField = 'dwri_productenname'
              end
              item
                DatasetField = 'dwri_productdesc'
                TableField = 'dwri_productdesc'
              end
              item
                DatasetField = 'dwri_sellmcode'
                TableField = 'dwri_sellmcode'
              end
              item
                DatasetField = 'dwri_sellrate'
                TableField = 'dwri_sellrate'
              end
              item
                DatasetField = 'dwri_sellprice'
                TableField = 'dwri_sellprice'
              end
              item
                DatasetField = 'dwri_sellamt'
                TableField = 'dwri_sellamt'
              end
              item
                DatasetField = 'dwri_sellamtrmb'
                TableField = 'dwri_sellamtrmb'
              end
              item
                DatasetField = 'dwri_gw'
                TableField = 'dwri_gw'
              end
              item
                DatasetField = 'dwri_gwamt'
                TableField = 'dwri_gwamt'
              end
              item
                DatasetField = 'dwri_qty'
                TableField = 'dwri_qty'
              end
              item
                DatasetField = 'dwri_stockqty'
                TableField = 'dwri_stockqty'
              end
              item
                DatasetField = 'dwri_unit'
                TableField = 'dwri_unit'
              end
              item
                DatasetField = 'dwri_buyamt'
                TableField = 'dwri_buyamt'
              end
              item
                DatasetField = 'dwri_buyamtrmb'
                TableField = 'dwri_buyamtrmb'
              end
              item
                DatasetField = 'dwri_buyprice'
                TableField = 'dwri_buyprice'
              end
              item
                DatasetField = 'dwri_remark'
                TableField = 'dwri_remark'
              end
              item
                DatasetField = 'dwri_whid'
                TableField = 'dwri_whid'
              end>
          end>
        Name = 'd_warehousereceiveitem'
        Fields = <
          item
            Name = 'dwri_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwri_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwri_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwri_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwri_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwri_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwri_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwri_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwri_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwri_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwri_gw'
            DataType = datFloat
          end
          item
            Name = 'dwri_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwri_qty'
            DataType = datFloat
          end
          item
            Name = 'dwri_stockqty'
            DataType = datFloat
          end
          item
            Name = 'dwri_unit'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwri_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dwri_buyamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwri_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dwri_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwri_whid'
            DataType = datGuid
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouseitem'
            SQL = 
              'SELECT '#10'    dwi_whid, dwi_serial, dwi_productid, dwi_productno, ' +
              #10'    dwi_productrealno, dwi_productname, dwi_productcnname, '#10'   ' +
              ' dwi_productenname, dwi_productdesc, dwi_sellprice, '#10'    dwi_sel' +
              'lmcode, dwi_sellrate, dwi_qty, dwi_unit, dwi_sellamt, '#10'    dwi_s' +
              'ellamtrmb, dwi_gw, dwi_gwamt, dwi_remark ,bwh_name'#10'  FROM'#10'    d_' +
              'warehouseitem left outer join b_warehouse on dwi_whid=bwh_id'#10'  W' +
              'HERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwi_whid'
                TableField = 'dwi_whid'
              end
              item
                DatasetField = 'dwi_serial'
                TableField = 'dwi_serial'
              end
              item
                DatasetField = 'dwi_productid'
                TableField = 'dwi_productid'
              end
              item
                DatasetField = 'dwi_productno'
                TableField = 'dwi_productno'
              end
              item
                DatasetField = 'dwi_productrealno'
                TableField = 'dwi_productrealno'
              end
              item
                DatasetField = 'dwi_productname'
                TableField = 'dwi_productname'
              end
              item
                DatasetField = 'dwi_productcnname'
                TableField = 'dwi_productcnname'
              end
              item
                DatasetField = 'dwi_productenname'
                TableField = 'dwi_productenname'
              end
              item
                DatasetField = 'dwi_productdesc'
                TableField = 'dwi_productdesc'
              end
              item
                DatasetField = 'dwi_sellprice'
                TableField = 'dwi_sellprice'
              end
              item
                DatasetField = 'dwi_sellmcode'
                TableField = 'dwi_sellmcode'
              end
              item
                DatasetField = 'dwi_sellrate'
                TableField = 'dwi_sellrate'
              end
              item
                DatasetField = 'dwi_qty'
                TableField = 'dwi_qty'
              end
              item
                DatasetField = 'dwi_unit'
                TableField = 'dwi_unit'
              end
              item
                DatasetField = 'dwi_sellamt'
                TableField = 'dwi_sellamt'
              end
              item
                DatasetField = 'dwi_sellamtrmb'
                TableField = 'dwi_sellamtrmb'
              end
              item
                DatasetField = 'dwi_gw'
                TableField = 'dwi_gw'
              end
              item
                DatasetField = 'dwi_gwamt'
                TableField = 'dwi_gwamt'
              end
              item
                DatasetField = 'dwi_remark'
                TableField = 'dwi_remark'
              end
              item
                DatasetField = 'bwh_name'
                TableField = '<unknown>'
                SQLOrigin = 'bwh_name'
              end>
          end>
        Name = 'd_warehouseitem2'
        Fields = <
          item
            Name = 'dwi_whid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwi_serial'
            DataType = datAutoInc
            GeneratorName = 'd_warehouseitem'
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwi_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwi_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwi_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwi_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwi_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwi_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwi_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwi_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwi_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwi_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwi_qty'
            DataType = datFloat
          end
          item
            Name = 'dwi_unit'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwi_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwi_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwi_gw'
            DataType = datFloat
          end
          item
            Name = 'dwi_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwi_remark'
            DataType = datString
            Size = 120
          end
          item
            Name = 'bwh_name'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouserejection'
            SQL = 
              'SELECT '#10'    dwhj_id, dwhj_no, dwhj_date, dwhj_wid, dwhj_wname, '#10 +
              '    dwhj_wstaff, dwhj_woid, dwhj_wono, dwhj_createstaff, '#10'    dw' +
              'hj_createdate, dwhj_modifystaff, dwhj_modifydate, '#10'    dwhj_qty,' +
              ' dwhj_amt, dwhj_remark, dwhj_checkrequeststaff, '#10'    dwhj_checkr' +
              'equestid, dwhj_checkstaff, dwhj_checkdate, '#10'    dwhj_state, dwhj' +
              '_oid, dwhj_osimpname, dwhj_oiid, dwhj_projectid, '#10'    dwhj_proje' +
              'ctno'#10'  FROM'#10'    d_warehouserejection'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwhj_id'
                TableField = 'dwhj_id'
              end
              item
                DatasetField = 'dwhj_no'
                TableField = 'dwhj_no'
              end
              item
                DatasetField = 'dwhj_date'
                TableField = 'dwhj_date'
              end
              item
                DatasetField = 'dwhj_wid'
                TableField = 'dwhj_wid'
              end
              item
                DatasetField = 'dwhj_wname'
                TableField = 'dwhj_wname'
              end
              item
                DatasetField = 'dwhj_wstaff'
                TableField = 'dwhj_wstaff'
              end
              item
                DatasetField = 'dwhj_woid'
                TableField = 'dwhj_woid'
              end
              item
                DatasetField = 'dwhj_wono'
                TableField = 'dwhj_wono'
              end
              item
                DatasetField = 'dwhj_createstaff'
                TableField = 'dwhj_createstaff'
              end
              item
                DatasetField = 'dwhj_createdate'
                TableField = 'dwhj_createdate'
              end
              item
                DatasetField = 'dwhj_modifystaff'
                TableField = 'dwhj_modifystaff'
              end
              item
                DatasetField = 'dwhj_modifydate'
                TableField = 'dwhj_modifydate'
              end
              item
                DatasetField = 'dwhj_qty'
                TableField = 'dwhj_qty'
              end
              item
                DatasetField = 'dwhj_amt'
                TableField = 'dwhj_amt'
              end
              item
                DatasetField = 'dwhj_remark'
                TableField = 'dwhj_remark'
              end
              item
                DatasetField = 'dwhj_checkrequeststaff'
                TableField = 'dwhj_checkrequeststaff'
              end
              item
                DatasetField = 'dwhj_checkrequestid'
                TableField = 'dwhj_checkrequestid'
              end
              item
                DatasetField = 'dwhj_checkstaff'
                TableField = 'dwhj_checkstaff'
              end
              item
                DatasetField = 'dwhj_checkdate'
                TableField = 'dwhj_checkdate'
              end
              item
                DatasetField = 'dwhj_state'
                TableField = 'dwhj_state'
              end
              item
                DatasetField = 'dwhj_oid'
                TableField = 'dwhj_oid'
              end
              item
                DatasetField = 'dwhj_osimpname'
                TableField = 'dwhj_osimpname'
              end
              item
                DatasetField = 'dwhj_oiid'
                TableField = 'dwhj_oiid'
              end
              item
                DatasetField = 'dwhj_projectid'
                TableField = 'dwhj_projectid'
              end
              item
                DatasetField = 'dwhj_projectno'
                TableField = 'dwhj_projectno'
              end>
          end>
        Name = 'd_warehouserejection'
        Fields = <
          item
            Name = 'dwhj_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwhj_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhj_date'
            DataType = datDateTime
          end
          item
            Name = 'dwhj_wid'
            DataType = datGuid
          end
          item
            Name = 'dwhj_wname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhj_wstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhj_woid'
            DataType = datGuid
          end
          item
            Name = 'dwhj_wono'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhj_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhj_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhj_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhj_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dwhj_qty'
            DataType = datFloat
          end
          item
            Name = 'dwhj_amt'
            DataType = datFloat
          end
          item
            Name = 'dwhj_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dwhj_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhj_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dwhj_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhj_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dwhj_state'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwhj_oid'
            DataType = datGuid
          end
          item
            Name = 'dwhj_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwhj_oiid'
            DataType = datInteger
          end
          item
            Name = 'dwhj_projectid'
            DataType = datGuid
          end
          item
            Name = 'dwhj_projectno'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_warehouserejectionitem'
            SQL = 
              'SELECT '#10'    dwji_pid, dwji_serial, dwji_productid, dwji_productn' +
              'o, '#10'    dwji_productrealno, dwji_productname, dwji_productcnname' +
              ', '#10'    dwji_productenname, dwji_productdesc, dwji_sellmcode, '#10'  ' +
              '  dwji_sellrate, dwji_sellprice, dwji_sellamt, dwji_sellamtrmb, ' +
              #10'    dwji_gw, dwji_gwamt, dwji_qty, dwji_unit, dwji_buyamt, '#10'   ' +
              ' dwji_buyamtrmb, dwji_buyprice, dwji_remark, dwji_whid, '#10'    dwj' +
              'i_id'#10'  FROM'#10'    d_warehouserejectionitem'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dwji_pid'
                TableField = 'dwji_pid'
              end
              item
                DatasetField = 'dwji_serial'
                TableField = 'dwji_serial'
              end
              item
                DatasetField = 'dwji_productid'
                TableField = 'dwji_productid'
              end
              item
                DatasetField = 'dwji_productno'
                TableField = 'dwji_productno'
              end
              item
                DatasetField = 'dwji_productrealno'
                TableField = 'dwji_productrealno'
              end
              item
                DatasetField = 'dwji_productname'
                TableField = 'dwji_productname'
              end
              item
                DatasetField = 'dwji_productcnname'
                TableField = 'dwji_productcnname'
              end
              item
                DatasetField = 'dwji_productenname'
                TableField = 'dwji_productenname'
              end
              item
                DatasetField = 'dwji_productdesc'
                TableField = 'dwji_productdesc'
              end
              item
                DatasetField = 'dwji_sellmcode'
                TableField = 'dwji_sellmcode'
              end
              item
                DatasetField = 'dwji_sellrate'
                TableField = 'dwji_sellrate'
              end
              item
                DatasetField = 'dwji_sellprice'
                TableField = 'dwji_sellprice'
              end
              item
                DatasetField = 'dwji_sellamt'
                TableField = 'dwji_sellamt'
              end
              item
                DatasetField = 'dwji_sellamtrmb'
                TableField = 'dwji_sellamtrmb'
              end
              item
                DatasetField = 'dwji_gw'
                TableField = 'dwji_gw'
              end
              item
                DatasetField = 'dwji_gwamt'
                TableField = 'dwji_gwamt'
              end
              item
                DatasetField = 'dwji_qty'
                TableField = 'dwji_qty'
              end
              item
                DatasetField = 'dwji_unit'
                TableField = 'dwji_unit'
              end
              item
                DatasetField = 'dwji_buyamt'
                TableField = 'dwji_buyamt'
              end
              item
                DatasetField = 'dwji_buyamtrmb'
                TableField = 'dwji_buyamtrmb'
              end
              item
                DatasetField = 'dwji_buyprice'
                TableField = 'dwji_buyprice'
              end
              item
                DatasetField = 'dwji_remark'
                TableField = 'dwji_remark'
              end
              item
                DatasetField = 'dwji_whid'
                TableField = 'dwji_whid'
              end
              item
                DatasetField = 'dwji_id'
                TableField = 'dwji_id'
              end>
          end>
        Name = 'd_warehouserejectionitem'
        Fields = <
          item
            Name = 'dwji_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwji_serial'
            DataType = datInteger
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dwji_productid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dwji_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dwji_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwji_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwji_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwji_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dwji_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dwji_sellmcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dwji_sellrate'
            DataType = datFloat
          end
          item
            Name = 'dwji_sellprice'
            DataType = datFloat
          end
          item
            Name = 'dwji_sellamt'
            DataType = datFloat
          end
          item
            Name = 'dwji_sellamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwji_gw'
            DataType = datFloat
          end
          item
            Name = 'dwji_gwamt'
            DataType = datFloat
          end
          item
            Name = 'dwji_qty'
            DataType = datFloat
          end
          item
            Name = 'dwji_unit'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dwji_buyamt'
            DataType = datFloat
          end
          item
            Name = 'dwji_buyamtrmb'
            DataType = datFloat
          end
          item
            Name = 'dwji_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dwji_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dwji_whid'
            DataType = datGuid
          end
          item
            Name = 'dwji_id'
            DataType = datInteger
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_outbusiness'
            SQL = 
              'SELECT'#10'    dob_id, dob_pid,dob_filename, dob_fileext,'#10'    dob_fi' +
              'le'#10'  FROM'#10'    d_outbusiness'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dob_id'
                TableField = 'dob_id'
              end
              item
                DatasetField = 'dob_filename'
                TableField = 'dob_filename'
              end
              item
                DatasetField = 'dob_fileext'
                TableField = 'dob_fileext'
              end
              item
                DatasetField = 'dob_file'
                TableField = 'dob_file'
              end
              item
                DatasetField = 'dob_pid'
                TableField = 'dob_pid'
              end>
          end>
        Name = 'd_outbusiness1'
        Fields = <
          item
            Name = 'dob_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dob_pid'
            DataType = datGuid
          end
          item
            Name = 'dob_filename'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dob_fileext'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dob_file'
            DataType = datBlob
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_projectstaff'
            SQL = 
              'SELECT '#10'    dps_pid, dps_staff, dps_role, dps_remark'#10'  FROM'#10'    ' +
              'd_projectstaff'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dps_pid'
                TableField = 'dps_pid'
              end
              item
                DatasetField = 'dps_staff'
                TableField = 'dps_staff'
              end
              item
                DatasetField = 'dps_role'
                TableField = 'dps_role'
              end
              item
                DatasetField = 'dps_remark'
                TableField = 'dps_remark'
              end>
          end>
        Name = 'd_projectstaff'
        Fields = <
          item
            Name = 'dps_pid'
            DataType = datGuid
            Required = True
          end
          item
            Name = 'dps_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dps_role'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dps_remark'
            DataType = datString
            Size = 200
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'b_userdepartment'
            SQL = 
              'SELECT '#10'    bu_id, bd_id, bd_name'#10'  FROM'#10'    b_userdepartment'#10'  ' +
              'WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'bu_id'
                TableField = 'bu_id'
              end
              item
                DatasetField = 'bd_id'
                TableField = 'bd_id'
              end
              item
                DatasetField = 'bd_name'
                TableField = 'bd_name'
              end>
          end>
        Name = 'b_userdepartment'
        Fields = <
          item
            Name = 'bu_id'
            DataType = datGuid
          end
          item
            Name = 'bd_id'
            DataType = datGuid
          end
          item
            Name = 'bd_name'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_buyrequest'
            SQL = 
              'SELECT '#10'    dbr_id, dbr_no, dbr_projectno, dbr_projectid, dbr_da' +
              'te, '#10'    dbr_state, dbr_staff, dbr_department, dbr_staffid, '#10'   ' +
              ' dbr_staffiid, dbr_mcode, dbr_rate, dbr_amt, dbr_qty, '#10'    dbr_i' +
              'nfo, dbr_remark, dbr_checkrequeststaff, dbr_checkrequestid, '#10'   ' +
              ' dbr_checkstaff, dbr_checkdate, dbr_oid, dbr_oiid, dbr_osimpname' +
              ', '#10'    dbr_createstaff, dbr_createdate, dbr_modifystaff, dbr_mod' +
              'ifydate'#10'  FROM'#10'    d_buyrequest'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dbr_id'
                TableField = 'dbr_id'
              end
              item
                DatasetField = 'dbr_no'
                TableField = 'dbr_no'
              end
              item
                DatasetField = 'dbr_projectno'
                TableField = 'dbr_projectno'
              end
              item
                DatasetField = 'dbr_projectid'
                TableField = 'dbr_projectid'
              end
              item
                DatasetField = 'dbr_date'
                TableField = 'dbr_date'
              end
              item
                DatasetField = 'dbr_state'
                TableField = 'dbr_state'
              end
              item
                DatasetField = 'dbr_staff'
                TableField = 'dbr_staff'
              end
              item
                DatasetField = 'dbr_department'
                TableField = 'dbr_department'
              end
              item
                DatasetField = 'dbr_staffid'
                TableField = 'dbr_staffid'
              end
              item
                DatasetField = 'dbr_staffiid'
                TableField = 'dbr_staffiid'
              end
              item
                DatasetField = 'dbr_mcode'
                TableField = 'dbr_mcode'
              end
              item
                DatasetField = 'dbr_rate'
                TableField = 'dbr_rate'
              end
              item
                DatasetField = 'dbr_amt'
                TableField = 'dbr_amt'
              end
              item
                DatasetField = 'dbr_qty'
                TableField = 'dbr_qty'
              end
              item
                DatasetField = 'dbr_info'
                TableField = 'dbr_info'
              end
              item
                DatasetField = 'dbr_remark'
                TableField = 'dbr_remark'
              end
              item
                DatasetField = 'dbr_checkrequeststaff'
                TableField = 'dbr_checkrequeststaff'
              end
              item
                DatasetField = 'dbr_checkrequestid'
                TableField = 'dbr_checkrequestid'
              end
              item
                DatasetField = 'dbr_checkstaff'
                TableField = 'dbr_checkstaff'
              end
              item
                DatasetField = 'dbr_checkdate'
                TableField = 'dbr_checkdate'
              end
              item
                DatasetField = 'dbr_oid'
                TableField = 'dbr_oid'
              end
              item
                DatasetField = 'dbr_oiid'
                TableField = 'dbr_oiid'
              end
              item
                DatasetField = 'dbr_osimpname'
                TableField = 'dbr_osimpname'
              end
              item
                DatasetField = 'dbr_createstaff'
                TableField = 'dbr_createstaff'
              end
              item
                DatasetField = 'dbr_createdate'
                TableField = 'dbr_createdate'
              end
              item
                DatasetField = 'dbr_modifystaff'
                TableField = 'dbr_modifystaff'
              end
              item
                DatasetField = 'dbr_modifydate'
                TableField = 'dbr_modifydate'
              end>
          end>
        Name = 'd_buyrequest'
        Fields = <
          item
            Name = 'dbr_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dbr_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dbr_projectno'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dbr_projectid'
            DataType = datGuid
          end
          item
            Name = 'dbr_date'
            DataType = datDateTime
          end
          item
            Name = 'dbr_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dbr_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dbr_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dbr_staffid'
            DataType = datGuid
          end
          item
            Name = 'dbr_staffiid'
            DataType = datInteger
          end
          item
            Name = 'dbr_mcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dbr_rate'
            DataType = datFloat
          end
          item
            Name = 'dbr_amt'
            DataType = datFloat
          end
          item
            Name = 'dbr_qty'
            DataType = datFloat
          end
          item
            Name = 'dbr_info'
            DataType = datString
            Size = 400
          end
          item
            Name = 'dbr_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dbr_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dbr_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dbr_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dbr_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dbr_oid'
            DataType = datGuid
          end
          item
            Name = 'dbr_oiid'
            DataType = datInteger
          end
          item
            Name = 'dbr_osimpname'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dbr_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dbr_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dbr_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dbr_modifydate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_buyrequestitem'
            SQL = 
              'SELECT '#10'    dbri_pid, dbri_serial, dbri_productid, dbri_productn' +
              'o, '#10'    dbri_productrealno, dbri_productname, dbri_productcnname' +
              ', '#10'    dbri_productenname, dbri_productdesc, dbri_buyprice, '#10'   ' +
              ' dbri_buymcode, dbri_buyrate, dbri_qty, dbri_stockqty, '#10'    dbri' +
              '_unit, dbri_estiamt, dbri_date, dbri_remark, dbri_goal, '#10'    dbr' +
              'i_id'#10'  FROM'#10'    d_buyrequestitem'#10'  WHERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dbri_pid'
                TableField = 'dbri_pid'
              end
              item
                DatasetField = 'dbri_serial'
                TableField = 'dbri_serial'
              end
              item
                DatasetField = 'dbri_productid'
                TableField = 'dbri_productid'
              end
              item
                DatasetField = 'dbri_productno'
                TableField = 'dbri_productno'
              end
              item
                DatasetField = 'dbri_productrealno'
                TableField = 'dbri_productrealno'
              end
              item
                DatasetField = 'dbri_productname'
                TableField = 'dbri_productname'
              end
              item
                DatasetField = 'dbri_productcnname'
                TableField = 'dbri_productcnname'
              end
              item
                DatasetField = 'dbri_productenname'
                TableField = 'dbri_productenname'
              end
              item
                DatasetField = 'dbri_productdesc'
                TableField = 'dbri_productdesc'
              end
              item
                DatasetField = 'dbri_buyprice'
                TableField = 'dbri_buyprice'
              end
              item
                DatasetField = 'dbri_buymcode'
                TableField = 'dbri_buymcode'
              end
              item
                DatasetField = 'dbri_buyrate'
                TableField = 'dbri_buyrate'
              end
              item
                DatasetField = 'dbri_qty'
                TableField = 'dbri_qty'
              end
              item
                DatasetField = 'dbri_stockqty'
                TableField = 'dbri_stockqty'
              end
              item
                DatasetField = 'dbri_unit'
                TableField = 'dbri_unit'
              end
              item
                DatasetField = 'dbri_estiamt'
                TableField = 'dbri_estiamt'
              end
              item
                DatasetField = 'dbri_date'
                TableField = 'dbri_date'
              end
              item
                DatasetField = 'dbri_remark'
                TableField = 'dbri_remark'
              end
              item
                DatasetField = 'dbri_goal'
                TableField = 'dbri_goal'
              end
              item
                DatasetField = 'dbri_id'
                TableField = 'dbri_id'
              end>
          end>
        Name = 'd_buyrequestitem'
        Fields = <
          item
            Name = 'dbri_pid'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dbri_serial'
            DataType = datFloat
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dbri_productid'
            DataType = datGuid
          end
          item
            Name = 'dbri_productno'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dbri_productrealno'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dbri_productname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dbri_productcnname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dbri_productenname'
            DataType = datString
            Size = 120
          end
          item
            Name = 'dbri_productdesc'
            DataType = datString
            Size = 240
          end
          item
            Name = 'dbri_buyprice'
            DataType = datFloat
          end
          item
            Name = 'dbri_buymcode'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dbri_buyrate'
            DataType = datFloat
          end
          item
            Name = 'dbri_qty'
            DataType = datFloat
          end
          item
            Name = 'dbri_stockqty'
            DataType = datFloat
          end
          item
            Name = 'dbri_unit'
            DataType = datString
            Size = 10
          end
          item
            Name = 'dbri_estiamt'
            DataType = datFloat
          end
          item
            Name = 'dbri_date'
            DataType = datDateTime
          end
          item
            Name = 'dbri_remark'
            DataType = datString
            Size = 60
          end
          item
            Name = 'dbri_goal'
            DataType = datString
            Size = 200
          end
          item
            Name = 'dbri_id'
            DataType = datAutoInc
            GeneratorName = 'd_buyrequestitem'
            Required = True
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_travelbook'
            SQL = 
              'SELECT '#10'    dtb_id, dtb_no, dtb_date, dtb_state, dtb_staff, dtb_' +
              'department, '#10'    dtb_staffid, dtb_staffiid, dtb_info, dtb_reques' +
              't, dtb_carrequest, '#10'    dtb_remark, dtb_checkrequeststaff, dtb_c' +
              'heckrequestid, '#10'    dtb_checkstaff, dtb_checkdate, dtb_createsta' +
              'ff, dtb_createdate, '#10'    dtb_modifystaff, dtb_modifydate, dtb_de' +
              'alinfo,dtb_dealstate'#10'  FROM'#10'    d_travelbook'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dtb_id'
                TableField = 'dtb_id'
              end
              item
                DatasetField = 'dtb_no'
                TableField = 'dtb_no'
              end
              item
                DatasetField = 'dtb_date'
                TableField = 'dtb_date'
              end
              item
                DatasetField = 'dtb_state'
                TableField = 'dtb_state'
              end
              item
                DatasetField = 'dtb_staff'
                TableField = 'dtb_staff'
              end
              item
                DatasetField = 'dtb_department'
                TableField = 'dtb_department'
              end
              item
                DatasetField = 'dtb_staffid'
                TableField = 'dtb_staffid'
              end
              item
                DatasetField = 'dtb_staffiid'
                TableField = 'dtb_staffiid'
              end
              item
                DatasetField = 'dtb_info'
                TableField = 'dtb_info'
              end
              item
                DatasetField = 'dtb_request'
                TableField = 'dtb_request'
              end
              item
                DatasetField = 'dtb_carrequest'
                TableField = 'dtb_carrequest'
              end
              item
                DatasetField = 'dtb_remark'
                TableField = 'dtb_remark'
              end
              item
                DatasetField = 'dtb_checkrequeststaff'
                TableField = 'dtb_checkrequeststaff'
              end
              item
                DatasetField = 'dtb_checkrequestid'
                TableField = 'dtb_checkrequestid'
              end
              item
                DatasetField = 'dtb_checkstaff'
                TableField = 'dtb_checkstaff'
              end
              item
                DatasetField = 'dtb_checkdate'
                TableField = 'dtb_checkdate'
              end
              item
                DatasetField = 'dtb_createstaff'
                TableField = 'dtb_createstaff'
              end
              item
                DatasetField = 'dtb_createdate'
                TableField = 'dtb_createdate'
              end
              item
                DatasetField = 'dtb_modifystaff'
                TableField = 'dtb_modifystaff'
              end
              item
                DatasetField = 'dtb_modifydate'
                TableField = 'dtb_modifydate'
              end
              item
                DatasetField = 'dtb_dealinfo'
                TableField = 'dtb_dealinfo'
              end
              item
                DatasetField = 'dtb_dealstate'
                TableField = 'dtb_dealstate'
              end>
          end>
        Name = 'd_travelbook'
        Fields = <
          item
            Name = 'dtb_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dtb_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dtb_date'
            DataType = datDateTime
          end
          item
            Name = 'dtb_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtb_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtb_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtb_staffid'
            DataType = datGuid
          end
          item
            Name = 'dtb_staffiid'
            DataType = datInteger
          end
          item
            Name = 'dtb_info'
            DataType = datString
            Size = 400
          end
          item
            Name = 'dtb_request'
            DataType = datString
            Size = 300
          end
          item
            Name = 'dtb_carrequest'
            DataType = datString
            Size = 300
          end
          item
            Name = 'dtb_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dtb_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtb_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dtb_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtb_checkdate'
            DataType = datDateTime
          end
          item
            Name = 'dtb_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtb_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dtb_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dtb_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dtb_dealinfo'
            DataType = datString
            Size = 300
          end
          item
            Name = 'dtb_dealstate'
            DataType = datString
            Size = 30
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_carlist'
            SQL = 
              'SELECT '#10'    dcl_id, dcl_no, dcl_model, dcl_info, dcl_count, dcl_' +
              'date, '#10'    dcl_value, dcl_remark, dcl_createstaff, dcl_createdat' +
              'e, '#10'    dcl_modifystaff, dcl_modifydate'#10'  FROM'#10'    d_carlist'#10'  W' +
              'HERE {Where}'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dcl_id'
                TableField = 'dcl_id'
              end
              item
                DatasetField = 'dcl_no'
                TableField = 'dcl_no'
              end
              item
                DatasetField = 'dcl_model'
                TableField = 'dcl_model'
              end
              item
                DatasetField = 'dcl_info'
                TableField = 'dcl_info'
              end
              item
                DatasetField = 'dcl_count'
                TableField = 'dcl_count'
              end
              item
                DatasetField = 'dcl_date'
                TableField = 'dcl_date'
              end
              item
                DatasetField = 'dcl_value'
                TableField = 'dcl_value'
              end
              item
                DatasetField = 'dcl_remark'
                TableField = 'dcl_remark'
              end
              item
                DatasetField = 'dcl_createstaff'
                TableField = 'dcl_createstaff'
              end
              item
                DatasetField = 'dcl_createdate'
                TableField = 'dcl_createdate'
              end
              item
                DatasetField = 'dcl_modifystaff'
                TableField = 'dcl_modifystaff'
              end
              item
                DatasetField = 'dcl_modifydate'
                TableField = 'dcl_modifydate'
              end>
          end>
        Name = 'd_carlist'
        Fields = <
          item
            Name = 'dcl_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dcl_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dcl_model'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcl_info'
            DataType = datString
            Size = 400
          end
          item
            Name = 'dcl_count'
            DataType = datInteger
          end
          item
            Name = 'dcl_date'
            DataType = datDateTime
          end
          item
            Name = 'dcl_value'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcl_remark'
            DataType = datString
            Size = 400
          end
          item
            Name = 'dcl_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcl_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dcl_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcl_modifydate'
            DataType = datDateTime
          end>
      end
      item
        Params = <>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_carrequest'
            SQL = 
              'SELECT '#10'    dcr_id, dcr_no, dcr_usedate, dcr_state, dcr_staff, '#10 +
              '    dcr_department, dcr_staffid, dcr_staffiid, dcr_info, '#10'    dc' +
              'r_carrequest, dcr_remark, dcr_checkrequeststaff, '#10'    dcr_checkr' +
              'equestid, dcr_createstaff, dcr_createdate, '#10'    dcr_modifystaff,' +
              ' dcr_modifydate, dcr_checkstaff, dcr_checkdate'#10'  FROM'#10'    d_carr' +
              'equest'#10'  WHERE {Where}'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'dcr_id'
                TableField = 'dcr_id'
              end
              item
                DatasetField = 'dcr_no'
                TableField = 'dcr_no'
              end
              item
                DatasetField = 'dcr_usedate'
                TableField = 'dcr_usedate'
              end
              item
                DatasetField = 'dcr_state'
                TableField = 'dcr_state'
              end
              item
                DatasetField = 'dcr_staff'
                TableField = 'dcr_staff'
              end
              item
                DatasetField = 'dcr_department'
                TableField = 'dcr_department'
              end
              item
                DatasetField = 'dcr_staffid'
                TableField = 'dcr_staffid'
              end
              item
                DatasetField = 'dcr_staffiid'
                TableField = 'dcr_staffiid'
              end
              item
                DatasetField = 'dcr_info'
                TableField = 'dcr_info'
              end
              item
                DatasetField = 'dcr_carrequest'
                TableField = 'dcr_carrequest'
              end
              item
                DatasetField = 'dcr_remark'
                TableField = 'dcr_remark'
              end
              item
                DatasetField = 'dcr_checkrequeststaff'
                TableField = 'dcr_checkrequeststaff'
              end
              item
                DatasetField = 'dcr_checkrequestid'
                TableField = 'dcr_checkrequestid'
              end
              item
                DatasetField = 'dcr_createstaff'
                TableField = 'dcr_createstaff'
              end
              item
                DatasetField = 'dcr_createdate'
                TableField = 'dcr_createdate'
              end
              item
                DatasetField = 'dcr_modifystaff'
                TableField = 'dcr_modifystaff'
              end
              item
                DatasetField = 'dcr_modifydate'
                TableField = 'dcr_modifydate'
              end
              item
                DatasetField = 'dcr_checkstaff'
                TableField = 'dcr_checkstaff'
              end
              item
                DatasetField = 'dcr_checkdate'
                TableField = 'dcr_checkdate'
              end>
          end>
        Name = 'd_carrequest'
        Fields = <
          item
            Name = 'dcr_id'
            DataType = datGuid
            Required = True
            InPrimaryKey = True
          end
          item
            Name = 'dcr_no'
            DataType = datString
            Size = 20
          end
          item
            Name = 'dcr_usedate'
            DataType = datString
            Size = 100
          end
          item
            Name = 'dcr_state'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcr_staff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcr_department'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcr_staffid'
            DataType = datGuid
          end
          item
            Name = 'dcr_staffiid'
            DataType = datInteger
          end
          item
            Name = 'dcr_info'
            DataType = datString
            Size = 400
          end
          item
            Name = 'dcr_carrequest'
            DataType = datString
            Size = 300
          end
          item
            Name = 'dcr_remark'
            DataType = datString
            Size = 500
          end
          item
            Name = 'dcr_checkrequeststaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcr_checkrequestid'
            DataType = datGuid
          end
          item
            Name = 'dcr_createstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcr_createdate'
            DataType = datDateTime
          end
          item
            Name = 'dcr_modifystaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcr_modifydate'
            DataType = datDateTime
          end
          item
            Name = 'dcr_checkstaff'
            DataType = datString
            Size = 30
          end
          item
            Name = 'dcr_checkdate'
            DataType = datDateTime
          end>
      end>
    JoinDataTables = <>
    UnionDataTables = <>
    Commands = <
      item
        Params = <
          item
            Name = 'dfmi1_pid'
            DataType = datGuid
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmi1_object'
            DataType = datString
            Size = 60
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmi1_class'
            DataType = datString
            Size = 30
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_purpose'
            DataType = datString
            Size = 60
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_amt'
            DataType = datFloat
            DecimalPrecision = 15
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_remark'
            DataType = datString
            Size = 120
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_companyamt'
            DataType = datFloat
            DecimalPrecision = 15
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_departamt'
            DataType = datFloat
            DecimalPrecision = 15
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_feemanageitem1'
            SQL = 
              'INSERT'#10'  INTO d_feemanageitem1'#10'    (dfmi1_pid, dfmi1_object, dfm' +
              'i1_class, dfmu1_purpose, '#10'     dfmu1_amt, dfmu1_remark, dfmu1_co' +
              'mpanyamt, dfmu1_departamt)'#10'  VALUES'#10'    (:dfmi1_pid, :dfmi1_obje' +
              'ct, :dfmi1_class, :dfmu1_purpose, '#10'     :dfmu1_amt, :dfmu1_remar' +
              'k, :dfmu1_companyamt, :dfmu1_departamt)'
            StatementType = stSQL
            ColumnMappings = <>
          end>
        Name = 'Insert_d_feemanageitem1'
      end
      item
        Params = <
          item
            Name = 'OLD_dfmi1_pid'
            DataType = datGuid
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'OLD_dfmi1_serial'
            DataType = datInteger
            DecimalPrecision = 10
            Value = ''
            ParamType = daptInput
          end>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_feemanageitem1'
            SQL = 
              'DELETE '#10'  FROM'#10'    d_feemanageitem1'#10'  WHERE'#10'    (dfmi1_pid = :OL' +
              'D_dfmi1_pid) AND '#10'    (dfmi1_serial = :OLD_dfmi1_serial)'
            StatementType = stSQL
            ColumnMappings = <>
          end>
        Name = 'Delete_d_feemanageitem1'
      end
      item
        Params = <
          item
            Name = 'dfmi1_pid'
            DataType = datGuid
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmi1_object'
            DataType = datString
            Size = 60
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmi1_class'
            DataType = datString
            Size = 30
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_purpose'
            DataType = datString
            Size = 60
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_amt'
            DataType = datFloat
            DecimalPrecision = 15
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_remark'
            DataType = datString
            Size = 120
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_companyamt'
            DataType = datFloat
            DecimalPrecision = 15
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'dfmu1_departamt'
            DataType = datFloat
            DecimalPrecision = 15
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'OLD_dfmi1_pid'
            DataType = datGuid
            DecimalPrecision = 255
            DecimalScale = 255
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'OLD_dfmi1_serial'
            DataType = datInteger
            DecimalPrecision = 10
            Value = ''
            ParamType = daptInput
          end>
        Statements = <
          item
            Connection = 'SysConnection'
            Default = True
            TargetTable = 'd_feemanageitem1'
            SQL = 
              'UPDATE d_feemanageitem1'#10'  SET '#10'    dfmi1_pid = :dfmi1_pid, '#10'    ' +
              'dfmi1_object = :dfmi1_object, '#10'    dfmi1_class = :dfmi1_class, '#10 +
              '    dfmu1_purpose = :dfmu1_purpose, '#10'    dfmu1_amt = :dfmu1_amt,' +
              ' '#10'    dfmu1_remark = :dfmu1_remark, '#10'    dfmu1_companyamt = :dfm' +
              'u1_companyamt, '#10'    dfmu1_departamt = :dfmu1_departamt'#10'  WHERE'#10' ' +
              '   (dfmi1_pid = :OLD_dfmi1_pid) AND '#10'    (dfmi1_serial = :OLD_df' +
              'mi1_serial)'
            StatementType = stSQL
            ColumnMappings = <>
          end>
        Name = 'Update_d_feemanageitem1'
      end>
    RelationShips = <>
    UpdateRules = <>
    Version = 0
    Left = 34
    Top = 56
  end
  object bpBaseTable: TDABusinessProcessor
    Schema = Schema
    ReferencedDataset = 'b_basetable'
    ProcessorOptions = [poAutoGenerateInsert, poAutoGenerateUpdate, poAutoGenerateDelete, poAutoGenerateRefreshDataset, poPrepareCommands]
    UpdateMode = updWhereAll
    Left = 72
    Top = 122
  end
end
